angelfish has asked for the wisdom of the Perl Monks concerning the following question:
for the life of me I can't figure this out. Say I have the following @array:
& etc.......order_id, time_mins 096000BN, 32 096000BP, 85 096000BG, 132 096000Be, 85 096000BP, 32
I would like to perform a match on array value at position 0 i.e.: $array[$i][0] and if the match found find a difference between values in corresponding position 1. So basically, I want to find a match for values in column order_id and if there is a match calculate the difference in time_mins.
Should I use hash for this? The number of lines in array is extremely large. Thanks for your help!!!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Comparing elements of array...
by b4swine (Pilgrim) on Oct 28, 2007 at 00:28 UTC | |
|
Re: Comparing elements of array...
by graff (Chancellor) on Oct 28, 2007 at 04:11 UTC | |
|
Re: Comparing elements of array...
by TOD (Friar) on Oct 28, 2007 at 00:21 UTC | |
by RMGir (Prior) on Oct 28, 2007 at 12:25 UTC |