Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Comparing 2 hash tables where values are stored in arrays

by Athanasius (Archbishop)
on Sep 06, 2014 at 03:27 UTC ( #1099736=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! perl
    use strict;
    ...
        say get_unique    ( [ $hash1{$key} // [], $hash2{$key} // [] ] );
        say get_complement( [ $hash1{$key} // [], $hash2{$key} // [] ] );
    }
    
  2. or download this
    13:23 >perl 1000_SoPW.pl
    2,4
    5,7
    
    13:23 >
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2022-08-10 14:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?