in reply to Array search

use List::MoreUtils qw(firstidx); my $index = firstidx { $_ == $searchvalue } @array;

There are ten types of people: those that understand binary and those that don't.