in reply to how do I find one number that matches in elements of same array and combine those elements?
@array = (1 2 3 4 5 6 7 8 10 14 15 20, 7 14 20, 21 22 23 24 40 50);
This is not valid Perl code. Should that be three strings? Or three array references?
I want to combine the elements
How do you want to combine them? concatenate? Or sort numerically, and remove duplicates?
How do I merge two elements if all the elements of one element are present in other as in 0th and first element?
How are we supposed to know what your requirements are?
Also, what have you tried so far?
Please read How (Not) To Ask A Question.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |