in reply to Re^2: Using fork with DBI to create simultaneous db connections.
in thread Using fork with DBI to create simultaneous db connections.
Anyway, here's a quick demo:
You can see that each process has it's own array, with the reference stored in $x, yet in both processes, the memory address appears the same.prompt> perl -le 'my $pid = fork; my $x = [$pid]; print "$x->[0] -- $x +"' 0 -- ARRAY(0x80d11ec) 24694 -- ARRAY(0x80d11ec) prompt>
------------ :Wq Not an editor command: Wq
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Using fork with DBI to create simultaneous db connections.
by thor (Priest) on Feb 08, 2005 at 12:46 UTC |