http://www.perlmonks.org?node_id=655570


in reply to Re: Finding index of an entry in an Array
in thread Finding index of an entry in an Array

$index++ until @repo[$index] eq $input or $i > $#repo;
Did you perhaps mean:
$index++ until $repo[$index] eq $input or $index > $#repo;

since you don't declare $i anywhere, and I'd have a hard time not getting that to loop forever when I started comparing zero to $#repo :)

Edit: thanks to IRCperson for spotting $repo[$index]