Once you fork, you have two different processes, with different environments. @array in the child is not the same @array that's in the parent any more.
See perlipc for treatment of lots of options for talking between processes.
After Compline,
Zaxo
In reply to Re: Forking to read and write to an array
by Zaxo
in thread Forking to read and write to an array
by atistler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |