Data::Diff is a data structure comparison module.
use Data::Diff qw(diff);
# simple procedural interface to raw difference output
$out = diff( $a, $b );
# OO usage
$diff = Data::Diff->new( $a, $b );
$new = $diff->apply();
$changes = $diff->diff_a();
Data::Diff computes the differences between two abirtray complex data structures.
new Data::Diff( $a, $b, $options )
Creates and retruns a new Data::Diff object with the differences between $a and $b.
apply( $options )
Returns the result of applying one side over the other.
Returns the internal data structure that describes the differences at all levels within.
Diff( $a, $b, $options )
Compares the two arguments $a and $b and returns the raw comparison between the two.
Nothing by default but you can choose to export the non-OO function Diff().