I haven't seen this among the replies, so here it goes
It's very similar to the already-mentioned$_ = thatroutine() and return $_;
I like both roughly equally.return $_ if $_ = thatroutine();
the lowliest monk
In reply to Re: looking for a good idiom: return this if this is true
by tlm
in thread looking for a good idiom: return this if this is true
by merlyn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |