Nobody mentioned this, so I will: If you're willing to change the order, you can use unless like if:
Personally, I think it looks a little better, but it's up to you. I just mentioned it because not everyone is aware that you can use unless in this fashion.unless ($something) { first_thing(); second_thing(); many_things(); }
In reply to Re: multiple commands before unless ?
by VSarkiss
in thread multiple commands before unless ?
by emilford
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |