|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re: Lexicals in if() scope gotcha!by simonm (Vicar) |
| on Mar 31, 2004 at 00:36 UTC ( #341158=note: print w/ replies, xml ) | Need Help?? |
|
Yikes! I've used the if ( my $foo = ... structure here and there in my code under the assumption that it would be scoped so as to DWIM; I'll have to keep my eye out for this... Update: On second thought, this is less of a problem than it seemed at first; all of those uses are within subroutine blocks that will ensure the referenced values don't stick around forever.
In Section
Meditations
|
|
||||||||||||||||||||||