in reply to Comparing contents of 2 Hashes of Hashes
Anyway, assuming the hashes are actually different, this ought to work:
foreach $clusterhost(@hosts) { foreach $file(@files) { if ($localdigest{$clusterhost}{$file} ne $remotedigest{$cluster +host}{$file}) { $error=1; print "The local $file on $clusterhost does not equal t +he remote $file.\n"; } } } if (!$error) { print "All files matched on all hosts.\n"; }
Gary Blackburn
Trained Killer
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Comparing contents of 2 Hashes of Hashes
by Tuna (Friar) on Aug 16, 2001 at 15:52 UTC |