[svn:perlfaq] r6564 - perlfaq/trunk

[email protected] Mon, 26 Jun 2006 14:56:02 -0700 (PDT)
Newsgroups perl.cvs.perlfaq
Message-ID <[email protected]>
Author: comdog
Date: Mon Jun 26 14:56:01 2006
New Revision: 6564

Modified:
   perlfaq/trunk/perlfaq3.pod

Log:
* Fixed error in Data::Dumper example. The name of the function is
Dumper(). Whoever wrote this answer is an idiot! :)
                                                                                


Modified: perlfaq/trunk/perlfaq3.pod
==============================================================================
--- perlfaq/trunk/perlfaq3.pod	(original)
+++ perlfaq/trunk/perlfaq3.pod	Mon Jun 26 14:56:01 2006
@@ -129,8 +129,8 @@
 
 The C<Data::Dumper> module can pretty-print Perl data structures:
 
-	use Data::Dumper( Dump );
-	print STDERR "The hash is " . Dump( \%hash ) . "\n";
+	use Data::Dumper qw( Dumper );
+	print STDERR "The hash is " . Dumper( \%hash ) . "\n";
 
 Perl comes with an interactive debugger, which you can start with the
 C<-d> switch. It's fully explained in L<perldebug>.