[KLUG Programming] perl fork question
Dirk H Bartley
programming@kalamazoolinux.org
16 Sep 2003 16:45:58 -0400
When you fork in perl, my understanding is that the programs variables
are shared, or more specifically that the child and parent have all of
the existing variables but each process then has it's own copy of the
variables in the program with the same initial state. How can I have a
variable that can be modified in the child and the parent will see it's
change. What I am interested in specifically is a filehandle. I would
be willing to print a variable to a file in the child and read it in the
parent but I am not sure how to accomplish this with a scalar
filehandle.
Dirk