in reply to Re: Shortest -return index of element in array- subin thread Shortest -return index of element in array- sub
sub aindex { grep$_[$_+1]eq$_[0],0..@_-2 } [download]