in reply to Re: searching a list
in thread searching a list
I would also suspect that List::Util has something useful
yeah, first.
use List::Util qw( first ); my $found = defined first { $_ eq 'at' } @s;
By the way,
my $ct = scalar ...
is the same as
my $ct = ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: searching a list
by McDarren (Abbot) on Jun 27, 2006 at 04:49 UTC |