Does Perl have any kind of else / unless statements, sort of like
elsif?  I tried:

if ($foo) {
}
else unless ($bar) {
}

but it just gave me syntax errors.  And I guess I could just do:
if ($foo) {
}
else {
  unless ($bar) {
  }
}

But the place in the code I was trying it was for clarity, and all the
nested unlesses don't seem to add to clarity.

Thanks in advance.

-Dan


-- 
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