Does a compound statement need to end with an "else" ?
I know -
if (expression) {
statement;
} elsif (expression) {
statement;
}
works but I've never seen a block like that in a book yet. I usually
see something like -
if (expression) {
statement;
} elsif (expression) {
statement;
} else {
statement;
}
I've posted the following code to use as an example. Any critique of
the code in addition to my specific question is welcome:) I just don't
see a reason to stick an "else" statement on the end of that block.
http://www.nixnotes.org/perl_dump.html
Thanks,
Kent
--
"I am always doing that which I can not do,
in order that I may learn how to do it." --Pablo Picasso
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>