Subject: | Missing information in Catalyst::Manual::Tutorial::07_Debugging |
The paragraph that describes how it is possible to use Data::Dumper from
within Template Toolkit fails to mention that you need to 'use' the
dumper modules too.
Original :
You can also use Data::Dumper in both Catalyst code (use Data::Dumper;
$c->log->debug("\$var is: ".Dumper($var));)) and TT templates ([%
Dumper.dump(book) %].
Corrected :
You can also use Data::Dumper in both Catalyst code (use Data::Dumper;
$c->log->debug("\$var is: ".Dumper($var));)) and TT templates ([% USE
Dumper %] [% Dumper.dump(book) %].
Though for clarity it might be better written as two sentences.
Cheers,
Bill.