On Thu, 18 Dec 2003 13:35:17 -0600
Kenton Brede <[EMAIL PROTECTED]> wrote:

> Does a compound statement need to end with an "else" ?

Technically No. But what if you haven't covered all the options?


So I would suggest adding after the last elsif

} elsif ($string[0] =~ m/^\w/) { # limit search string
    get_record($string[0]);
}


else {print "Mmmm something real odd here\n"}


-- 
Owen


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to