note
tphyahoo
You might want to check out [String Comparison] by [Madam], a recent discussion on basically the same theme. In resolving all these types of problems, the best approaches seem to involve morphing from string to array and back with sort/join. You asked a question about arrays, Madam asked a question about strings, but it's the same problem.
<p>
This also mentions some issues you need to think about, eg, how do you treat duplicate elements in the list; how do you treat whitespace; etc.
<p>
[Reasonablekeith]'s solution, towards the bottom, seemed the best to me. Short and to the point.
<p>
You could also have a look at [mod://Array::Compare] from CPAN, which I <a href="http://www.google.de/search?hl=de&biw=1272&q=%22compare+two+arrays%22+perl+cpan&btnG=Suche&meta=">fished using a search engine</a>. Good luck.
469324
469324