in reply to WHY copying does happen (fork)
Perl uses reference counting for variables, and hence even reading a variable means increasing the reference count, reading the value, and then decreasing the reference count again. So even a read can cause a memory write in Perl. You don't show much code, so I can't tell whether that's the case with your code, but I think that's a propable explanation.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: WHY copying does happen (fork)
by moritz (Cardinal) on May 05, 2008 at 17:13 UTC | |
by Corion (Patriarch) on May 05, 2008 at 17:22 UTC |