mosh has asked for the wisdom of the Perl Monks concerning the following question:
Stupid question, but I don't know the answer... :(
Is it a must to use "else" at the end of "if" and "elsif" block?
For example:
if (...){...}
elsif(...){...}
elsif(...){...}
Is it a must to use "else" at the end, or it is optional?
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: elsif stupid question...
by Transient (Hermit) on Apr 28, 2005 at 14:43 UTC | |
|
Re: elsif stupid question...
by Joost (Canon) on Apr 28, 2005 at 14:44 UTC | |
by mosh (Scribe) on Apr 28, 2005 at 14:47 UTC | |
|
Re: elsif stupid question...
by cog (Parson) on Apr 28, 2005 at 14:44 UTC | |
|
Re: elsif stupid question...
by blazar (Canon) on Apr 28, 2005 at 14:48 UTC | |
by Fletch (Bishop) on Apr 28, 2005 at 15:09 UTC | |
by blazar (Canon) on Apr 28, 2005 at 15:53 UTC | |
by dmorelli (Scribe) on Apr 28, 2005 at 15:09 UTC | |
by blazar (Canon) on Apr 28, 2005 at 15:44 UTC |