Problems? Is your data what you think it is? | |
PerlMonks |
Re: "if" in a my declaration statement causes problemby mrpeabody (Friar) |
on Feb 21, 2006 at 23:06 UTC ( [id://531829]=note: print w/replies, xml ) | Need Help?? |
Combining "my" and "if" should issue a warning from the compiler. It's a gotcha, it's not intuitive behavior, and -- judging by how often it comes up on Perlmonks -- catches many otherwise able coders unawares.
In Section
Seekers of Perl Wisdom
|
|