good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: if and unlessby tfrayner (Curate) |
on Dec 16, 2001 at 21:36 UTC ( [id://132364]=note: print w/replies, xml ) | Need Help?? |
Hmm...
Possibly the following is what you want. It depends on whether the 'something screwing up' happens during execution of your 'do something else' or whether it just happens to be an input into the whole condtional, as shown here: As has been obliquely pointed out, unless can really be thought of as the opposite of if, so your code is essentially two consecutive and unrelated conditionals. Sorry if this is not what you're after. It's hard to be sure :-) Tim
In Section
Seekers of Perl Wisdom
|
|