in reply to 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
use List::Util qw(max); my $max = max (map $#$_, @LoL);
-- Randal L. Schwartz, Perl hacker
OK, this instead:
{grin}use List::Util qw(max); my $max = max (map $#$_, @LoL); my @where = grep $#{$LoL[$_]} == $max, 0..$#LoL;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Getting last valid index from a particular list in a @LoL
by blakem (Monsignor) on Oct 17, 2001 at 04:16 UTC | |
|
Re^4: Getting last valid index from a particular list in a @LoL
by Aristotle (Chancellor) on Oct 17, 2001 at 07:40 UTC | |
by merlyn (Sage) on Oct 17, 2001 at 17:58 UTC | |
by Aristotle (Chancellor) on Oct 17, 2001 at 19:14 UTC |