Evanovich has asked for the wisdom of the Perl Monks concerning the following question:
And I want to end up with an array of numbers, sorted by the names in the array. And, where there is a null value, I want 999 entered. Thus, I want the resulting array to be something like this:FILE ARRAY name1 4.5 name1 name3 3.4 name2 name5 6.5 name3 name4 -7.9 name4 name6 3.2 name5
I'm just having a bit of trouble doing the correct (and time-efficient) iteration. The columns and arrays are about 10,000 elements long. Thanks, Evan4.5 999 3.4 -7.9 999
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Comparing hashes and arrays
by blakem (Monsignor) on Sep 06, 2001 at 10:46 UTC | |
|
Re: Comparing hashes and arrays
by lestrrat (Deacon) on Sep 06, 2001 at 10:40 UTC | |
|
(larryk) sticking with the schwartzian
by larryk (Friar) on Sep 06, 2001 at 13:35 UTC | |
|
Re: Comparing hashes and arrays
by Anarion (Hermit) on Sep 06, 2001 at 12:52 UTC | |
by Sifmole (Chaplain) on Sep 06, 2001 at 16:38 UTC | |
by bbfu (Curate) on Sep 06, 2001 at 21:37 UTC | |
by Anarion (Hermit) on Sep 06, 2001 at 22:02 UTC | |
by Sifmole (Chaplain) on Sep 06, 2001 at 22:53 UTC |