<?xml version="1.0" encoding="windows-1252"?>
<node id="66030" title="Re: Shortest -return index of element in array- sub" created="2001-03-21 14:00:54" updated="2005-07-19 14:08:39">
<type id="11">
note</type>
<author id="45414">
jmcnamara</author>
<data>
<field name="doctext">
&lt;br&gt;
Or maybe this:
&lt;code&gt;
    sub indexArray{
        while (@_) { return @_-1  if $_[0] eq pop }
    }
&lt;/code&gt;
&lt;br&gt;
John.
&lt;br&gt;
-- &lt;br&gt;&lt;br&gt;
&lt;b&gt;Update:&lt;/b&gt; Just saw [ChOas]' post.</field>
<field name="root_node">
66003</field>
<field name="parent_node">
66003</field>
</data>
</node>
