Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 ( #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? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2023-02-05 23:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (33 votes). Check out past polls.

    Notices?