Not really any better, but there is:
$rv = thatsubroutine() and return $rv;
In reply to Re: looking for a good idiom: return this if this is true
by ikegami
in thread looking for a good idiom: return this if this is true
by merlyn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |