in reply to "foreach" is to "next" as "map" is to ???
Reading between the lines (or rather between the nodes) and assuming that you are trying to combine the two loops in this node, then the empty list technique is the most applicable.
my @sorted = map{ substr $_, 5; }sort { $b cmp $a } map{ m[,\s+(\d+)] ? sprintf '%05d%s', $1, $_ : () } @msgs;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: "foreach" is to "next" as "map" is to ???
by McMahon (Chaplain) on May 26, 2004 at 19:00 UTC | |
by BrowserUk (Patriarch) on May 26, 2004 at 19:11 UTC | |
by dragonchild (Archbishop) on May 26, 2004 at 19:02 UTC | |
by McMahon (Chaplain) on May 26, 2004 at 19:14 UTC | |
by Roy Johnson (Monsignor) on May 26, 2004 at 19:35 UTC |