use List::MoreUtils qw(firstidx); my $index = firstidx { $_ == $searchvalue } @array; [download]
In reply to Re: Array search by tirwhan in thread Array search by th206