Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: optimal way of comparing 2 arrays

by NetWallah (Canon)
on Oct 19, 2005 at 21:01 UTC ( [id://501427]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @file1 = qw{1 2 3 4  }; 
    my @file2 = qw{  2 3 4 5}; 
    ...
      $v==$seen{$_} and print qq[$n :$_\n]  
          for sort keys %seen
    }
    
  2. or download this
    File-1 only :1
    File-2 only :5
    Both have :2
    Both have :3
    Both have :4
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-19 20:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found