Update year on copyright
[catagits/Catalyst-Manual.git] / lib / Catalyst / Manual / Tutorial / 07_Debugging.pod
index 09c8dbe..2e71f3a 100644 (file)
@@ -93,7 +93,7 @@ template view use:
 
     [% c.log.debug("This is a test log message") %]
 
-As with many other logging facilities, you a method is defined for
+As with many other logging facilities, a method is defined for
 each of the following "logging levels" (in increasing order of
 severity/importance):
 
@@ -118,14 +118,14 @@ C<DB::single=1> line as follows inside the C<list> method (I like to
 "left-justify" my debug statements so I don't forget to remove them, but
 you can obviously indent them if you prefer):
 
-    sub list : Local {
+    sub list :Local {
         # Retrieve the usual Perl OO '$self' for this object. $c is the Catalyst
         # 'Context' that's used to 'glue together' the various components
         # that make up the application
         my ($self, $c) = @_;
     
     $DB::single=1;
-            
+    
         # Retrieve all of the book records as book model objects and store in the
         # stash where they can be accessed by the TT template
         $c->stash->{books} = [$c->model('DB::Book')->all];
@@ -311,7 +311,7 @@ debugging:
 
 Check the version of an installed module:
 
-    perl -ME<lt>mod_nameE<gt> -e '"print $E<lt>mod_nameE<gt>::VERSION\n"'
+    perl -M<mod_name> -e 'print "$<mod_name>::VERSION\n"'
 
 For example:
 
@@ -348,7 +348,7 @@ Otherwise, it returns undef and nothing will be printed.
 If you run into issues during the rendering of your template, it might 
 be helpful to enable TT C<DEBUG> options.  You can do this in a Catalyst 
 environment by adding a C<DEBUG> line to the C<__PACKAGE__->config> 
-declaration in C<lib/MyApp/View/TT.pm>:
+declaration in C<lib/MyApp/View/HTML.pm>:
 
     __PACKAGE__->config({
         TEMPLATE_EXTENSION => '.tt2',
@@ -374,7 +374,7 @@ Kennedy Clark, C<hkclark@gmail.com>
 
 Please report any errors, issues or suggestions to the author.  The
 most recent version of the Catalyst Tutorial can be found at
-L<http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-Manual/5.70/trunk/lib/Catalyst/Manual/Tutorial/>.
+L<http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Tutorial/>.
 
-Copyright 2006-2008, Kennedy Clark, under Creative Commons License
+Copyright 2006-2010, Kennedy Clark, under Creative Commons License
 (L<http://creativecommons.org/licenses/by-sa/3.0/us/>).