in reply to RE: Memory usage in Perl.
in thread Memory usage in Perl.
Perl's behaviour in this case is IMO seriously broken, intentionally undocumented, and as Larry Wall put it, "Use of this feature would be erroneous." It is also far more complex than a simple test would indicate.sub my_func { # Stuff my $foo = $bar unless $cond; # More stuff }
I would expect it to get fixed, probably for 5.6.2. In the meantime make sure that my statements are guaranteed to be executed.
EDIT
If anyone wants to know more about this, here is an
explanation
of what exactly is going on, and the
original
bug report. (*ahem* Yup, that is my bug.)
|
|---|