in reply to iterating through a hash?

use List::Compare; for (List::Compare->new([keys %h1], [keys %h2])->get_Lonly) { print "$_ $h1{$_}\n"; }

Replies are listed 'Best First'.
Re^2: iterating through a hash?
by Cristoforo (Curate) on Sep 17, 2006 at 20:12 UTC
    This doesn't list each item from file1. It only lists those items in file1 not in the second file.