You are viewing the version of this documentation from Perl 5.12.3. View the latest version

CONTENTS

NAME

Dumpvalue - provides screen dump of Perl data.

SYNOPSIS

use Dumpvalue;
my $dumper = Dumpvalue->new;
$dumper->set(globPrint => 1);
$dumper->dumpValue(\*::);
$dumper->dumpvars('main');
my $dump = $dumper->stringify($some_value);

DESCRIPTION

Creation

A new dumper is created by a call

$d = Dumpvalue->new(option1 => value1, option2 => value2)

Recognized options:

arrayDepth, hashDepth

Print only first N elements of arrays and hashes. If false, prints all the elements.

compactDump, veryCompact

Change style of array and hash dump. If true, short array may be printed on one line.

globPrint

Whether to print contents of globs.

dumpDBFiles

Dump arrays holding contents of debugged files.

dumpPackages

Dump symbol tables of packages.

dumpReused

Dump contents of "reused" addresses.

tick, quoteHighBit, printUndef

Change style of string dump. Default value of tick is auto, one can enable either double-quotish dump, or single-quotish by setting it to " or '. By default, characters with high bit set are printed as is. If quoteHighBit is set, they will be quoted.