sub checkConditions { my $value = shift; return someFunc() if $value == 0; return otherFunc(); }