From: Kieren Diment Date: Fri, 20 Jan 2012 12:25:07 +0000 (+1100) Subject: clarified Data Dumper usage. RT#71410 Thanks to Bill Corr X-Git-Tag: 5.9003~10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=commitdiff_plain;h=cbc0e764eeb1de2be9a79c33c76e2a169b795785 clarified Data Dumper usage. RT#71410 Thanks to Bill Corr --- diff --git a/Changes b/Changes index 0bc3afa..8a10df5 100644 --- 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 diff --git a/lib/Catalyst/Manual/Tutorial/07_Debugging.pod b/lib/Catalyst/Manual/Tutorial/07_Debugging.pod index 65be2f0..9937274 100644 --- a/lib/Catalyst/Manual/Tutorial/07_Debugging.pod +++ b/lib/Catalyst/Manual/Tutorial/07_Debugging.pod @@ -109,9 +109,15 @@ severity/importance): $c->log->error $c->log->fatal -You can also use L in both Catalyst code -(Clog-Edebug("\$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 Whether you are a logging fanatic or not, we strongly recommend that you take advantage of L or L. It's