$_ ? return $_ : undef for thatroutine(); #or simply return $_ if $_ for thatroutine();
In reply to Re^2: Ternary?
by Anonymous Monk
in thread looking for a good idiom: return this if this is true
by merlyn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |