Last active
December 5, 2015 22:10
-
-
Save bessarabov/0b821aaa75f6fd62852b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
=encoding UTF-8 | |
=cut | |
=head1 DESCRIPTION | |
=cut | |
# common modules | |
use strict; | |
use warnings FATAL => 'all'; | |
use feature 'say'; | |
use utf8; | |
use open qw(:std :utf8); | |
use DDP; | |
use Carp; | |
use Test::Deep::NoTest qw(cmp_details deep_diag); | |
use File::Slurp; | |
use JSON::PP; | |
# global vars | |
# subs | |
# main | |
sub main { | |
my $one = read_file('one.json'); | |
my $two = read_file('two.json'); | |
$one = decode_json $one; | |
$two = decode_json $two; | |
my ($ok, $stack) = cmp_details($one, $two); | |
say $ok ? 'match' : 'no match'; | |
say deep_diag($stack); | |
} | |
main(); | |
__END__ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment