On Thu, Apr 3, 2008 at 1:33 PM, Felipe de Jesús Molina Bravo
<[EMAIL PROTECTED]> wrote:
> > It depends on what you mean by share.  You can create a simple perl
> > object in startup.pl and access it from all processes later, but if
> > you change it in one process, the change will not be seen in the
> > others.  With objects that contain open sockets, file handles, or XS
> > structures, you usually can't share them at all.
>
> Is when they can be shared?  and if my file handle is open of "ro"  .... it
> can share between process?

It can be done, but it's tricky.  When you try to use one file handle
from multiple process it gets confused about the location in the file.
 If you really need to do it, read about shared file handles in
Programming Perl or your favorite Unix reference.

- Perrin

Reply via email to