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

RE: diff of two hashes.

by turnstep (Parson)
on May 12, 2000 at 19:16 UTC ( #11289=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for $x (keys %one) {
      delete $one{$x} if $two{$x} eq $one{$x};
    ...
    for $x (keys %one) {
      print "$x ($one{$x})\n";
    }
    
  2. or download this
    
    for $x (keys %one) {
    ...
    for $x (keys %two) {
      print "DIFF2: $x\n" unless $one{$x};
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2020-08-11 22:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (63 votes). Check out past polls.

    Notices?