Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Matching 2 unordered arrays then printing the first array highlighting the matches?

by gurpreetsingh13 (Scribe)
on Oct 29, 2013 at 09:26 UTC ( [id://1060129]=note: print w/replies, xml ) Need Help??


in reply to Matching 2 unordered arrays then printing the first array highlighting the matches?

perl -e 'my @bigArray=1..1883; my @smallArray=1..1043; $_~~@smallArray +?print "Matches=>$_\n":print "$_\n" foreach(@bigArray);'
  • Comment on Re: Matching 2 unordered arrays then printing the first array highlighting the matches?
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-20 00:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found