{ my $foo = 'X' x 100000000; <-- a lexical var $foo getc; } undef $foo; <-- the package var $foo was my $foo = ""; already undef so does nothing getc;
You would have wanted
{ my $foo = 'X' x 100000000; getc; undef $foo; } getc;
In reply to Re: Perl Garbage Collection, again
by ikegami
in thread Perl Garbage Collection, again
by pkirsch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |