cvs commit: perlfaq perlfaq4.pod
[email protected] (Robert Spier) 21 Sep 2003 05:59:37 -0000
| Newsgroups | perl.cvs.perlfaq |
|---|---|
| Message-ID | <[email protected]> |
cvsuser 03/09/20 22:59:37
Modified: . perlfaq4.pod
Log:
Some cleanups from p5p
Revision Changes Path
1.50 +5 -4 perlfaq/perlfaq4.pod
Index: perlfaq4.pod
===================================================================
RCS file: /cvs/public/perlfaq/perlfaq4.pod,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -w -r1.49 -r1.50
--- perlfaq4.pod 20 Sep 2003 06:37:43 -0000 1.49
+++ perlfaq4.pod 21 Sep 2003 05:59:37 -0000 1.50
@@ -1,6 +1,6 @@
=head1 NAME
-perlfaq4 - Data Manipulation ($Revision: 1.49 $, $Date: 2003/09/20 06:37:43 $)
+perlfaq4 - Data Manipulation ($Revision: 1.50 $, $Date: 2003/09/21 05:59:37 $)
=head1 DESCRIPTION
@@ -243,7 +243,7 @@
$bin = sprintf("%b", 3735928559);
-Using unpack;
+Using unpack:
$bin = unpack("B*", pack("N", 3735928559));
@@ -2064,8 +2064,9 @@
=head2 How do I print out or copy a recursive data structure?
The Data::Dumper module on CPAN (or the 5.005 release of Perl) is great
-for printing out data structures. The Storable module, found on CPAN,
-provides a function called C<dclone> that recursively copies its argument.
+for printing out data structures. The Storable module on CPAN (or the
+5.8 release of Perl), provides a function called C<dclone> that recursively
+copies its argument.
use Storable qw(dclone);
$r2 = dclone($r1);