in reply to Re: Shortest -return index of element in array- subin thread Shortest -return index of element in array- sub
sub i { pop eq $_[0] ? @_-1 : (), $#_ ? &i : () } [download]
ps. This is why I used @_-1 instead of $#_