diff options
author | Andreas König <a.koenig@mind.de> | 2002-03-30 07:12:36 +0100 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-03-30 16:52:09 +0000 |
commit | c80d22cf25b66d86b08969e4d74c9eff9e38e03f (patch) | |
tree | ccecdafe05b346153b68ff27092d141c449a8051 /lib/Dumpvalue.pm | |
parent | 19dda98f3cf253c51bb70f7b49299ce7b14e64d5 (diff) | |
download | perl-c80d22cf25b66d86b08969e4d74c9eff9e38e03f.tar.gz |
[DOC PATCH] Document Dumpvalue::stringify
Message-ID: <m3hemyvdtn.fsf@anima.de>
p4raw-id: //depot/perl@15626
Diffstat (limited to 'lib/Dumpvalue.pm')
-rw-r--r-- | lib/Dumpvalue.pm | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/Dumpvalue.pm b/lib/Dumpvalue.pm index c9b1acafeb..7944e78c96 100644 --- a/lib/Dumpvalue.pm +++ b/lib/Dumpvalue.pm @@ -1,7 +1,7 @@ use 5.006_001; # for (defined ref) and $#$v and our package Dumpvalue; use strict; -our $VERSION = '1.10'; +our $VERSION = '1.11'; our(%address, $stab, @stab, %stab, %subs); # documentation nits, handle complex data structures better by chromatic @@ -492,6 +492,7 @@ Dumpvalue - provides screen dump of Perl data. $dumper->set(globPrint => 1); $dumper->dumpValue(\*::); $dumper->dumpvars('main'); + my $dump = $dumper->stringify($some_value); =head1 DESCRIPTION @@ -578,10 +579,22 @@ method and set() method (which accept multiple arguments). $dumper->dumpValue($value); $dumper->dumpValue([$value1, $value2]); +Prints a dump to the currently selected filehandle. + =item dumpValues $dumper->dumpValues($value1, $value2); +Same as C< $dumper->dumpValue([$value1, $value2]); >. + +=item stringify + + 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. + =item dumpvars $dumper->dumpvars('my_package'); |