in reply to Re: Shortest -return index of element in array- subin thread Shortest -return index of element in array- sub
sub indexArray(@) { 1 while $_[0] ne pop; $#_; } [download]