Note that if you want to go the subroutine way, you could also do:
use List::Util qw[first]; my $val = first {defined} undef, 0;
In reply to Re: RFC: Defined-Or for before Perl 5.10
by JavaFan
in thread RFC: Defined-Or for before Perl 5.10
by molecules
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |