The closest thing I can think of, is using a return statement in your call. So you have to be specific in your usage. FYI, I use this syntax all the time because it is very easy to read.
sub checkConditions { my $value = shift; return someFunc() if $value == 0; return otherFunc(); }
In reply to Re: if/else syntax
by Herkum
in thread if/else syntax
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |