in reply to Perl speed VS. other languages
The C(++) equivalent may execute a lot faster, but how long does programming it take? I guess it'll take longer than the one minute I spent on it.push @foo, [ split /:/ ] while <>; print map { "$_->[0]\n" } sort { $a->[2] <=> $b->[2] } @foo; # Two lines, for clarity. # Of course I could have used another map.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re(2): Perl speed VS. other languages
by dmmiller2k (Chaplain) on Jan 16, 2002 at 00:08 UTC |