Personally, I find this the easiest to read:
my $x = $self->find_by_something(@args); defined $x and return $x; ...rest of code...
In reply to Re: return if defined
by Anonymous Monk
in thread return if defined
by uncoolbob
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |