diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2004-10-19 11:38:37 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2004-10-19 11:38:37 +0000 |
commit | fc3a748cd0ee9b79d0761d5ab998a733a5f2010c (patch) | |
tree | 15f7bf5d0ca6eb4b434314a46fc2a67d1e5bb06c /ext | |
parent | 024e7d0c442665d8c8757fddb243fb415f2a580f (diff) | |
download | perl-fc3a748cd0ee9b79d0761d5ab998a733a5f2010c.tar.gz |
More Data::Dumper docs nits, fix the previous one,
suggested by Yves Orton.
p4raw-id: //depot/perl@23383
Diffstat (limited to 'ext')
-rw-r--r-- | ext/Data/Dumper/Dumper.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/Data/Dumper/Dumper.pm b/ext/Data/Dumper/Dumper.pm index e206671d7e..a9acf752eb 100644 --- a/ext/Data/Dumper/Dumper.pm +++ b/ext/Data/Dumper/Dumper.pm @@ -689,8 +689,7 @@ variable is output in a single Perl statement. Handles self-referential structures correctly. The return value can be C<eval>ed to get back an identical copy of the -original reference structure (although you might need to turn off strictures -to eval it). +original reference structure. Any references that are the same as one of those passed in will be named C<$VAR>I<n> (where I<n> is a numeric suffix), and other duplicate references @@ -704,7 +703,8 @@ The default output of self-referential structures can be C<eval>ed, but the nested references to C<$VAR>I<n> will be undefined, since a recursive structure cannot be constructed using one Perl statement. You should set the C<Purity> flag to 1 to get additional statements that will correctly fill in -these references. +these references. Moreover, if C<eval>ed when strictures are in effect, +you need to ensure that any variables it accesses are previously declared. In the extended usage form, the references to be dumped can be given user-specified names. If a name begins with a C<*>, the output will |