|
|
| No such thing as a small change | |
| PerlMonks |
Re (tilly) 1: Shortest -return index of element in array- subby tilly (Archbishop) |
| on Mar 22, 2001 at 05:57 UTC ( #66219=note: print w/ replies, xml ) | Need Help?? |
|
If the contest is for an index and not the reverse index, then the above solution is correct. But the offerings that use pop will find the last match in the array rather than the first.
In Section
Cool Uses for Perl
|
|
||||||||||||||||||||