A hash is an array actually in perl.So you may use Array::Diff module on CPAN: http://search.cpan.org/~typester/Array-Diff-0.04/lib/Array/Diff.pm
2007/7/4, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
Hi I have a script which contains 2 hashes of file names as the keys and md5 sums as the values. I am looking for ideas on fast and efficient ways to compare the 2 hashes in the manner of the pseudo code below -- %base_hash %new_hash for keys in %new_hash if key in %new_hash exists in %base_hash compare values and do something else do something else -- i know there are simple ways to do this. I just wanted ideas on efficient ways on doing it. Thank You, Jim -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/