in reply to Re^3: Why doesn't perl optimize this?
in thread Why doesn't perl optimize this?
plz tell me
sub func { my ($code,@a) = @_; my $b = [@a]; eval $code; return $b; }
How is the compiler supposed to know that '@a' can be destroyed w/o knowing what happens in '$code' at runtime?
Cheers Rolf
( addicted to the Perl Programming Language)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Why doesn't perl optimize this?
by nbtrap (Sexton) on Jun 05, 2013 at 01:57 UTC | |
by LanX (Saint) on Jun 05, 2013 at 02:12 UTC |