in reply to perl memory usage
A better test would be this:
{ my $buf = "A" x (1024 * 1024 * 100); print "Allocated " . length($buf) . " byte buffer\n"; } print "Finished\n"; sleep(1000);
To make $buf go out of scope, but even then it still won't do what you expect.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl memory usage
by perrin (Chancellor) on Feb 04, 2008 at 12:59 UTC | |
|
Re^2: perl memory usage
by awesley (Novice) on Feb 04, 2008 at 22:07 UTC |