From: Rafael Garcia-Suarez Date: Tue, 19 Oct 2004 11:38:37 +0000 (+0000) Subject: More Data::Dumper docs nits, fix the previous one, X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fc3a748cd0ee9b79d0761d5ab998a733a5f2010c;p=p5sagit%2Fp5-mst-13.2.git More Data::Dumper docs nits, fix the previous one, suggested by Yves Orton. p4raw-id: //depot/perl@23383 --- diff --git a/ext/Data/Dumper/Dumper.pm b/ext/Data/Dumper/Dumper.pm index e206671..a9acf75 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 Ced 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 (where I is a numeric suffix), and other duplicate references @@ -704,7 +703,8 @@ The default output of self-referential structures can be Ced, but the nested references to C<$VAR>I will be undefined, since a recursive structure cannot be constructed using one Perl statement. You should set the C flag to 1 to get additional statements that will correctly fill in -these references. +these references. Moreover, if Ced 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