Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: comparsion of 2 arrays

by rev_1318 (Chaplain)
on Jun 23, 2005 at 09:53 UTC ( #469338=note: print w/replies, xml ) Need Help??


in reply to comparsion of 2 arrays

If your arrays contain text, you could use sort/join:
print "MATCH" if join("",sort(@arr1)) eq join("",sort(@arr3))

Paul

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://469338]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (2)
As of 2023-03-21 04:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (59 votes). Check out past polls.

    Notices?