FP::DumperEqual - equality
use FP::DumperEqual; ok dumperequal [1, [2, 3]], [1, [1+1, 3]]; ok not dumperequal [1, [2, 3]], [1, [1+2, 3]]; my $s1 = "stringwithunicode"; my $s2 = "stringwithunicode"; utf8::decode($s2); # ok not dumperequal $s1, $s2; # ^-- hmm, it used to be the case that this gave false ok dumperequal_utf8 $s1, $s2;
Deep structure equality comparison.
NOTE: using Data::Dumper and thus slow.
For a more proper solution, see FP::Equal
FP::Equal
This is alpha software! Read the status section in the package README or on the website.
To install FunctionalPerl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FunctionalPerl
CPAN shell
perl -MCPAN -e shell install FunctionalPerl
For more information on module installation, please visit the detailed CPAN module installation guide.