You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Mark James <mr...@bigpond.net.au> on 2003/03/05 14:18:33 UTC

Re: Reading an array from perl script

Devi .M wrote:
> Hello All,
> 	I have a perl script that would be running infinitely and updating
> an array by processing some data. Now I would like to read the array
> values that should not disturb this perl script.
> 	I thought to use the concept of shared variable and write a method
> in perl module which contains the array sharring with the infinitely
> running perl script and return me the updated array values. But don't know 
> how to proceed with this. Could anyone help me out?

Perhaps this "IPC::Shareable - share Perl variables between processes"
package would be suitable:

http://search.cpan.org/author/BSUGARS/IPC-Shareable-0.60/lib/IPC/Shareable.pm

Mark