tweetymonk has asked for the wisdom of the Perl Monks concerning the following question:
What i want to do is, 1)split the second array (@array2)as numbers and text. 2)compare the numbers with the elements of the 1st array (@array1). 3)which ever number matches, only its corresponding text and number should be displayd.@array1=('146.234','15.11','78.3','890',3423.23); @array2=('15.11#abc','890#def','78.3#ghi');
so, the result should look like, in an array, abc = 15.11, def = 890, ghi = 78.3
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: checking the matches
by moritz (Cardinal) on May 22, 2008 at 09:30 UTC | |
|
Re: checking the matches
by ikegami (Patriarch) on May 22, 2008 at 09:32 UTC | |
by psini (Deacon) on May 22, 2008 at 10:03 UTC | |
| |
|
Re: checking the matches
by mwah (Hermit) on May 22, 2008 at 09:58 UTC | |
by tweetymonk (Initiate) on May 22, 2008 at 10:47 UTC | |
by mwah (Hermit) on May 22, 2008 at 10:54 UTC | |
|
Re: checking the matches
by poolpi (Hermit) on May 22, 2008 at 10:54 UTC |