Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^3: Fast Way to find one array in second array

by LanX (Saint)
on Aug 14, 2016 at 18:52 UTC ( [id://1169755]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Fast Way to find one array in second array
in thread Fast Way to find one array in second array

So you are looking for set inclusion, not array inclusions. (Arrays have order! )

edit

In this case using hash slices should do.

update

See Using hashes for set operations...

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

  • Comment on Re^3: Fast Way to find one array in second array

Replies are listed 'Best First'.
Re^4: Fast Way to find one array in second array
by melmoth (Acolyte) on Aug 14, 2016 at 19:20 UTC

    thanks!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-24 19:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found