Do you know where your variables are? | |
PerlMonks |
Re: if/else syntaxby suaveant (Parson) |
on Jun 26, 2009 at 15:07 UTC ( [id://775084]=note: print w/replies, xml ) | Need Help?? |
If you want an "else" with an if, you need the brackets, "if" after the statement is a modifier, not a control block... if you just need the else, use unless
Update: I suppose you could do But don't. ;)
In Section
Seekers of Perl Wisdom
|
|