There is probably a more efficient way, but I think this would do the trick.foreach my $v1 (values %sql) { foreach my $v2 (values %csv) { if ($v1 ne $v2) { # do something } } }
EDIT: Thanks to cLive for pointing out that I'm totally on crack. Look at his post below for the good way to do this.
In reply to Re: Comparing hash data
by The_Rabbit
in thread Comparing hash data
by FubarPA
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |