Bug#722745: perlfaq4: in fact no need for CPAN's FreezeThaw when Data::Dumper is right under our noses

jidanni at jidanni.org jidanni at jidanni.org
Fri Sep 13 21:24:53 UTC 2013


Package: perl-doc
Version: 5.18.1-4
Severity: wishlist
File: /usr/share/perl/5.18.1/pod/perlfaq4.pod

At the end of

   How do I test whether two arrays or hashes are equal?

please mention that in fact CPAN is not needed at all,

use Data::Dumper;
$Data::Dumper::Indent = 0;
$Data::Dumper::Purity = $Data::Dumper::Useqq = $Data::Dumper::Sortkeys = 1;
printf "a and b contain %s hashes\n",
  Dumper( \%a ) eq Dumper( \%b ) ? "the same" : "different";

By the way mixing EXTRA and extra isn't best for certain sound oriented
reading public, so perhaps say FOO. However perhaps the idea is to keep
those users on their toes.




More information about the Perl-maintainers mailing list