Data::XDumper

Accurate human-readable dumps of perl data structures with labeled cross-references
Download

Data::XDumper Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Matthijs van Duin
  • Publisher web site:
  • http://search.cpan.org/~xmath/B-More-1.01/More.pm

Data::XDumper Tags


Data::XDumper Description

Accurate human-readable dumps of perl data structures with labeled cross-references Data::XDumper is a Perl module with accurate human-readable dumps of Perl data structures with labeled cross-references.SYNOPSIS use Data::XDumper; my $dump = new Data::XDumper usehex => 1; print scalar $dump->dump(); print "$_ " for $dump->dump({ foo => sub{}, 'bar ' => }); $dump->usehex = 0; print scalar $dump->dump(bless , 'MyClass'); my $test = ; push @$test, $test; Data::XDumper::Dump $test; use Data::XDumper qw(Dump DumpVar); print scalar Dump ; my %x = (foo => 1, bar => 2, baz => 3); DumpVar %x; # requires perl 5.8 or laterSynopsis output {'bar ' => , foo => &(synopsis.pl:5)} MyClass @(1, 2, 1024) $L001: %(bar => 2, baz => 3, foo => 1)Produces dumps of almost any kind of perl datastructure, in a format which I personally find a lot more readable than that of Data::Dumper.Perhaps more important is that it produces much more accurate dumps, that almost exactly mirror the internal structure of the data.The dump returns the output lines in list context. Otherwise it produces a big string containing the whole dump, and in void context prints it too.There are a few settings you can set on the dumper object. When you create a new dumper, it inherits the settings from the default object, which is returned by Data::XDumper::Default. Requirements: · Perl


Data::XDumper Related Software