in reply to Shortest -return index of element in array- sub

sub i { pop ne $_[0] ? &i : $#_ }
Ahhh, recursion...