Ulrich Windl wrote: >It would be useful in the original context. I tired to make this a one-liner: > my $index_by_name = sub { > my $hi = $header_i{(shift)}; > > die unless (defined($hi)); > return $hi; > }; my $index_by_name = sub { $header_i{(shift)} // die }; This is a defined-or situation, not defined-and. -zeframThread Previous | Thread Next