Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: elseif syntax errorby jakobi (Pilgrim) |
on Oct 27, 2009 at 14:18 UTC ( [id://803439]=note: print w/replies, xml ) | Need Help?? |
Please re-check your indenting and curlies ({,}). If the problem still isn't visually obvious for you, show us your current code again and tell us what if the elsif should come after. In contrast to C, Perl uses always the curlies in if () {...} elsif (...) {...} else {...}.
cu & HTH, Peter -- hints may be untested unless stated otherwise; use with caution & understanding.
In Section
Seekers of Perl Wisdom
|
|