Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Dear monks,
I wondered if someone could show me a way of comparing each position in two arrays to see if they contain the same value. Is a hash the best way to do this?
Many thanks!
e.g. $array[0] with $array2[0] etc...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: comparing array elements
by Roger (Parson) on Nov 21, 2003 at 09:42 UTC | |
Re: comparing array elements
by BrowserUk (Patriarch) on Nov 21, 2003 at 10:52 UTC | |
by rir (Vicar) on Nov 21, 2003 at 22:01 UTC | |
Re: comparing array elements
by Abigail-II (Bishop) on Nov 21, 2003 at 09:25 UTC | |
by Anonymous Monk on Nov 21, 2003 at 09:33 UTC | |
by Abigail-II (Bishop) on Nov 21, 2003 at 09:40 UTC | |
by Anonymous Monk on Nov 21, 2003 at 09:44 UTC | |
by Abigail-II (Bishop) on Nov 21, 2003 at 09:51 UTC | |
|
Back to
Seekers of Perl Wisdom