FireBird34 has asked for the wisdom of the Perl Monks concerning the following question:
Ok, please don't bash the new guy here. I have been learning perl for awhile, but nothing serious. I am starting to learn more, while creating some self programs. However, I can't seem to find anything good on comparing arrays, to suite what I require.
Pretty much, given:
I want to be able to compare these to arrays, and store the similar variables in each of them into @array_3 (which would be "x" in this case). I know this is pretty basic stuff here compared to the rest of these questions, so please don't bash. Hey, I'm learning! :)@array_1 = ['x', 'y', 'z'] @array_2 = ['v', 'w', 'x']
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Comparing Arrays -> storing results in a third Array
by djantzen (Priest) on Aug 15, 2002 at 00:56 UTC | |
by spurperl (Priest) on Aug 15, 2002 at 06:33 UTC | |
Re: Comparing Arrays -> storing results in a third Array
by Zaxo (Archbishop) on Aug 14, 2002 at 23:53 UTC | |
Re: Comparing Arrays -> storing results in a third Array
by DamnDirtyApe (Curate) on Aug 15, 2002 at 03:27 UTC | |
Re: Comparing Arrays -> storing results in a third Array
by GhodMode (Pilgrim) on Aug 15, 2002 at 02:37 UTC | |
Re: Comparing Arrays -> storing results in a third Array
by vek (Prior) on Aug 15, 2002 at 18:32 UTC | |
Re: Comparing Arrays -> storing results in a third Array
by Necos (Friar) on Aug 15, 2002 at 08:52 UTC | |
Re: Comparing Arrays -> storing results in a third Array
by adrianh (Chancellor) on Aug 15, 2002 at 21:22 UTC |
Back to
Seekers of Perl Wisdom