Do you know where your variables are? | |
PerlMonks |
Re: Convert loop and if constructs from C to Perlby vladdrak (Monk) |
on Dec 16, 2006 at 09:10 UTC ( [id://590183]=note: print w/replies, xml ) | Need Help?? |
Perl requires you to always enclose if/elsif/else affected code in in curly braced blocks... that is, unless they occur in a post context e.g. 'print 1 if $a;'.
In Section
Seekers of Perl Wisdom
|
|