sub firstIdx { $_[ $_ ] eq $_[ 0 ] and return --$_ for 1 .. @_; return; } [download]
In reply to Re^4: Common Perl Idioms by BrowserUk in thread Common Perl Idioms by eric256