in reply to Re: What is sprintf doing?
in thread What is sprintf doing?
my @wanted; foreach $msg(@msgs) { if ($msg =~ m[,\s+(\d+)]) { push @wanted, $msg; } } my @sorted = map{ substr $_, 5; } sort { $b cmp $a } map{ sprintf '%05d%s', $_ =~ m[,\s+(\d+)], $_; } @wanted;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: What is sprintf doing?
by BrowserUk (Patriarch) on May 25, 2004 at 18:28 UTC | |
by McMahon (Chaplain) on May 25, 2004 at 18:46 UTC |