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.
In reply to Re: perl memory usage
by DrHyde
in thread perl memory usage
by awesley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |