
breakerfall
New User
Dec 28, 2007, 9:10 PM
Post #1 of 2
(1388 views)
|
|
Perl memory mapping
|
Can't Post
|
|
If I print a reference (to an object) I get back the usual foo::bar=HASH(0x4356a89) If I fork() first it get back the same thing but printed twice (once for each process). My question is why are the memory locations the same even though they are two distinct objects in memory? If I modify an object in the child process the parent process object is not touched. Obviously the memory location is specific to the process executing the code. Is it simply a "local" location in the symbol table?
|