in reply to Comparing hash data
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Comparing hash data
by cLive ;-) (Prior) on Oct 01, 2004 at 20:12 UTC | |
by The_Rabbit (Acolyte) on Oct 01, 2004 at 20:21 UTC | |
by Grygonos (Chaplain) on Oct 01, 2004 at 20:56 UTC | |
by cLive ;-) (Prior) on Oct 01, 2004 at 21:27 UTC | |
by Grygonos (Chaplain) on Oct 02, 2004 at 02:42 UTC | |
|
Re^2: Comparing hash data
by Grygonos (Chaplain) on Oct 01, 2004 at 20:07 UTC |