Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Data::Dumper

Native Rust implementation built into the interpreter. Runtime: PP. See original documentation for the full Perl reference.

Provides data structure serialization to Perl syntax.

Perl Equivalent

Data::Dumper

Synopsis

use Data::Dumper;
print Dumper(\%hash, \@array);
my $d = Data::Dumper->new([$ref], ['name']);
$d->Indent(1);
$d->Sortkeys(1);
print $d->Dump();

Functions

Dumper

Dumps one or more references to Perl syntax. Returns a string containing the serialized representation.

use Data::Dumper;
print Dumper($hashref, $arrayref);

### DumperX