optiontrader has asked for the wisdom of the Perl Monks concerning the following question:
Question: I'd like to have code that compares the first line against every other line in the the set, then moves to the second line and compares it to every other line in the set, and so on. My goal is to be able to find rows where element 0,2, and 3 in one array match element 0,2, and 3 in another array but element 1 is different in the 2 arrays. thanks much@AoA = ( [ "AAA", "BUY", "98", "0" ], [ "BBB", "SEL", "27", "1" ], [ "FFF", "BUY", "43", "4" ], [ "AAA", "SEL", "98", "0" ], [ "CCC", "SEL", "98", "0" ], );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: comparing multiple lines in an array.
by Abigail-II (Bishop) on Oct 15, 2002 at 16:00 UTC | |
|
Re: comparing multiple lines in an array.
by broquaint (Abbot) on Oct 15, 2002 at 16:03 UTC | |
|
Re: comparing multiple lines in an array.
by rdfield (Priest) on Oct 15, 2002 at 15:47 UTC | |
|
Re: comparing multiple lines in an array.
by cluka (Sexton) on Oct 15, 2002 at 21:22 UTC | |
|
Re: comparing multiple lines in an array.
by George_Sherston (Vicar) on Oct 15, 2002 at 15:50 UTC | |
|
Re: comparing multiple lines in an array.
by hotshot (Prior) on Oct 15, 2002 at 16:04 UTC | |
|
Re: comparing multiple lines in an array.
by bprew (Monk) on Oct 15, 2002 at 20:15 UTC | |
|
Re: comparing multiple lines in an array.
by Aristotle (Chancellor) on Oct 16, 2002 at 13:58 UTC | |
by optiontrader (Novice) on Oct 22, 2002 at 15:00 UTC |