- or download this
my $x = "A" x 10_000_000;
- or download this
my $x = "AAAAA..[10_000_000 long]..";
- or download this
our $x;
my $code = sub { $x = "A" x 10_000_000 };
...
showmem("var freed");
undef $code;
showmem("code freed");
- or download this
perl -DXt -we 'my $l = 100; my $a = "A" x $l;'