in reply to Re^2: Compare fields in a file
in thread Compare fields in a file
between the first map and the grep.sort { $b->[2] <=> $a->[2] }
The output will now be sorted by descending amplitude and you will have only one entry per second.
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Compare fields in a file
by honyok (Sexton) on Feb 10, 2009 at 23:07 UTC | |
|
Re^4: Compare fields in a file
by honyok (Sexton) on Feb 11, 2009 at 05:10 UTC | |
by CountZero (Bishop) on Feb 11, 2009 at 06:13 UTC |