in reply to Re: Re: Re: Getting last valid index from a particular list in a @LoL
in thread Getting last valid index from a particular list in a @LoL

Aren't you tying your leg to your cheek there by going through the array twice? :-/

It's irrelevant when the script is going to be thrown away two days later of course, but I'd never put any bets on that. "A little" sloppiness here and "a little" there and some more at another place tends to pile up faster than you notice..
  • Comment on Re^4: Getting last valid index from a particular list in a @LoL

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Getting last valid index from a particular list in a @LoL
by merlyn (Sage) on Oct 17, 2001 at 17:58 UTC
    I'll bet you that for a 10-50 element list, my method to find all points which have a maximum beats any method where you do all the bookkeeping yourself. List::Util::max and grep are darn fast.

    -- Randal L. Schwartz, Perl hacker

      Ah, point, when there are several "equally longest" lists.