clarified Data Dumper usage. RT#71410 Thanks to Bill Corr
Kieren Diment [Fri, 20 Jan 2012 12:25:07 +0000 (23:25 +1100)]
Changes
lib/Catalyst/Manual/Tutorial/07_Debugging.pod

diff --git a/Changes b/Changes
index 0bc3afa..8a10df5 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,6 +1,7 @@
 Revision history for Catalyst-Manual
 
-5.9003 
+5.9003
+    - Clarified Data::Dumper usage.  RT#71410 Thanks to Bill Corr
     - Mention Chef deployment in Manual::Deployment (thanks to Alexey Melezhik)
 
 5.9002 3 Sept 2011
index 65be2f0..9937274 100644 (file)
@@ -109,9 +109,15 @@ severity/importance):
     $c->log->error
     $c->log->fatal
 
-You can also use L<Data::Dumper> in both Catalyst code
-(C<use Data::Dumper; $c-E<gt>log-E<gt>debug("\$var is: ".Dumper($var));)>)
-and TT templates (C<[% Dumper.dump(book) %]>.
+You can also use Data::Dumper in both Catalyst code and in TT templates.
+For use in Catalyst code:
+
+ use Data::Dumper;
+ $c->log->debug("\$var is: ".Dumper($c->stash->{something}));
+
+and TT templates:
+
+ [% USE Dumper ; Dumper.dump(c.stash.something) %].
 
 B<NOTE:> Whether you are a logging fanatic or not, we strongly recommend
 that you take advantage of L<Log::Log4perl> or L<Log::Dispatch>.  It's