in reply to Perl forked processes and variable sharing
... but AFAIK there shouldn't be any way that a process can change data inside another process.
And that is what fork is doing, creating different processes!
(however in a very efficient way by duplicating code with copy-on-write tricks, IIRC)
The "identical reference" you are seeing is IMHO just an identical copy of the reference, NOT the same memory address (NB: refs are not memory addresses! )
Why don't you use proper perlipc or threads with shared data instead?
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl forked processes and variable sharing
by fireblood (Scribe) on Feb 02, 2022 at 00:59 UTC |