use Dumpvalue; my $dumper = new Dumpvalue; $dumper->set(globPrint => 1); $dumper->dumpValue(\*::); $dumper->dumpvars('main'); my $dump = $dumper->stringify($some_value);
$d = new Dumpvalue(option1 => value1, option2 => value2)
Later in the life of the object the methods may be queries with get() method and set() method (which accept multiple arguments).
$dumper->dumpValue($value); $dumper->dumpValue([$value1, $value2]);
Prints a dump to the currently selected filehandle.
Same as " $dumper-"dumpValue([$value1, $value2]); >.
my $dump = $dumper->stringify($value [,$noticks] );
Returns the dump of a single scalar without printing. If the second argument is true, the return value does not contain enclosing ticks. Does not handle data structures.
$dumper->dumpvars('my_package'); $dumper->dumpvars('my_package', 'foo', '~bar$', '!......');
The optional arguments are considered as literal strings unless they start with "~" or "!", in which case they are interpreted as regular expressions (possibly negated).
The second example prints entries with names "foo", and also entries with names which ends on "bar", or are shorter than 5 chars.
Sets "tick" and "unctrl" options to suitable values for printout with the given quote char. Possible values are "auto", "'" and """.
Sets "unctrl" option with checking for an invalid argument. Possible values are "unctrl" and "quote".
Sets "compactDump" option. If the value is 1, sets to a reasonable big number.
Sets "compactDump" and "veryCompact" options simultaneously.
$d->set(option1 => value1, option2 => value2);
@values = $d->get('option1', 'option2');