Struct::Compare

Struct::Compare is a recursive diff for perl structures.
Download

Struct::Compare Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Ryan Davis, Zen Spider Software
  • Publisher web site:
  • http://search.cpan.org/~zenspider/Struct-Compare-1.0.1/Compare.pm

Struct::Compare Tags


Struct::Compare Description

Struct::Compare is a recursive diff for perl structures. Struct::Compare is a recursive diff for perl structures.SYNOPSIS use Struct::Compare; my $is_different = compare($ref1, $ref2);Compares two values of any type and structure and returns true if they are the same. It does a deep comparison of the structures, so a hash of a hash of a whatever will be compared correctly.This is especially useful for writing unit tests for your modules!PUBLIC FUNCTIONS$bool = compare($var1, $var2) Recursively compares $var1 to $var2, returning false if either structure is different than the other at any point. If both are undefined, it returns true as well, because that is considered equal. Requirements: · Perl


Struct::Compare Related Software