in reply to Is there an is_deeply() outside of Test::More?
Seems every time I ask a question here, I end up finding a workable solution. It must be just the fact I'm speaking 'out loud' about the issue. The following seems to do what I'm after:
#!/usr/bin/perl use warnings; use strict; use Data::Compare; my %h = (a => [1, 2, 3], b => [1, 2], c => 3); my %x = (a => [1, 2], b => [1, 2], c => 3); for (keys %h){ my $y = Compare($h{$_}, $x{$_}); print "$_ :: $y\n"; } __END__ $ ./comp.pl a :: 0 b :: 1 c :: 1
As always, I'm still absolutely open to suggestions.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is there an is_deeply() outside of Test::More?
by Your Mother (Archbishop) on Aug 14, 2015 at 22:57 UTC | |
by afoken (Chancellor) on Aug 15, 2015 at 09:20 UTC | |
by stevieb (Canon) on Aug 15, 2015 at 17:24 UTC | |
by thargas (Deacon) on Aug 17, 2015 at 18:17 UTC | |
by stevieb (Canon) on Aug 14, 2015 at 23:44 UTC | |
|
Re^2: Is there an is_deeply() outside of Test::More?
by Hermano23 (Beadle) on Aug 14, 2015 at 21:06 UTC | |
by stevieb (Canon) on Aug 14, 2015 at 21:14 UTC |