Once you've called fork you've got to completely seperate processes with their own seperate memory space. You can't simply change a variable in one and have it affect the other (or call methods in one process hoping to manipulate objects in the other), you've got to use either something like IPC::Shareable or some other form of interprocess communication (see perldoc perlipc) to send the information back and forth.
In reply to Re: fork() and global variables
by Fletch
in thread fork() and global variables
by Jaspersan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |