in reply to Re: My scalars swell
in thread My scalars swell
The problem is that the memory saved by trying coerce the scalar back to a number to save memory doesn't always work. For example, if the scalar has been used in a string before you don't get the memory back:my @foo = (0..100000); my @t; foreach my $f (@foo) { # comment/uncomment the next lines to change behaviors $f.=""; push(@t, $f+0); } system("ps auxwwww | grep perl"); sleep(10); exit(0);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: My scalars swell
by jackdied (Monk) on Oct 21, 2001 at 01:11 UTC |