Don't ask to ask, just ask | |
PerlMonks |
Re: Re: Re: Re: what's faster than .=by TimToady (Parson) |
on Mar 11, 2003 at 02:05 UTC ( [id://241912]=note: print w/replies, xml ) | Need Help?? |
It's slightly documented in the Camel book on page 598: "Don't undef long strings and arrays if they'll be reused for the same purpose. This helps prevent reallocation when the string or arrayh must be re-extended."
It's reliable till someone changes it... :-) Perl 5 never GCs a sub's lexicals in the sense we're talking about here. Certainly things can happen to objects that go out of scope, but that's different. Perl doesn't know when a sub might be called again. It merely assumes it.
In Section
Seekers of Perl Wisdom
|
|