sub indexArray { 1 while $_[0] ne pop; @_-1; } [download]
In reply to Re: Shortest -return index of element in array- sub by ChOas in thread Shortest -return index of element in array- sub by leons