Ahhhh, more recursion...sub i { pop eq $_[0] ? @_-1 : (), $#_ ? &i : () }
ps. This is why I used @_-1 instead of $#_
In reply to Re: Re: Shortest -return index of element in array- sub
by MeowChow
in thread Shortest -return index of element in array- sub
by leons
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |