orif ($_->{VALUE} eq $wanted) { return wantarray ? ( $_->{VALUE}, $_->{NAME}, $_->{ADDRESS} ) : 1; }
if ($_->{VALUE} eq $wanted) { return wantarray ? @$_{qw( VALUE NAME ADDRESS )} : 1; }
In reply to Re^2: Subroutine evaluated as boolean
by ikegami
in thread Subroutine evaluated as boolean
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |