Created
June 12, 2009 05:35
-
-
Save kyanny/128452 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/env perl | |
use strict; | |
use Array::Diff; | |
use Data::Dumper; | |
my ($old, $new) = @ARGV; | |
open my $io, '<', $old; | |
my @old = <$io>; | |
chomp @old; | |
close $io; | |
open my $io, '<', $new; | |
my @new = <$io>; | |
chomp @new; | |
close $io; | |
my $diff = Array::Diff->diff(\@old, \@new); | |
print Dumper $diff; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment