=back
+
=head1 DESCRIPTION
This part of the tutorial provides supporting information relevant to
the Catalyst tutorial.
+
=head1 APPENDIX 1: CUT AND PASTE FOR POD-BASED EXAMPLES
You may notice that Pod indents example code with four spaces. This
=item *
-"%$s/^ "
+"%s/^ "
A shortcut for the previous item (C<%> specifies the entire file; so
this removes four leading spaces from every line).
=head2 "Un-indenting" with Emacs
-B<TODO>
+Although there author has not used emacs for many years (apologies to
+the emacs fans out there), here is a quick hint to get you started. To
+replace the leading spaces of every line in a file, use:
+
+ M-x replace-regexp<RET>
+ Replace regexp: ^ <RET>
+ with: <RET>
+
+All of that will occur on the single line at the bottom of your screen.
+Note that "<RET>" represents the return key/enter. Also, there are
+four spaces after the "^" on the "Replace regexp:" line and no spaces
+entered on the last line.
+
+You can limit the replacement operation by selecting text first (depending
+on your version of emacs, you can either use the mouse or experiment with
+commands such as C<C-SPC> to set the mark at the cursor location and
+C<C-E<lt>> and C<C-E<gt>> to set the mark at the beginning and end of the
+file respectively.
+
=head1 APPENDIX 2: USING MYSQL AND POSTGRESQL
DROP TABLE IF EXISTS book_authors;
DROP TABLE IF EXISTS authors;
CREATE TABLE books (
- id INT(11) PRIMARY KEY,
+ id INT(11) PRIMARY KEY AUTO_INCREMENT,
title TEXT ,
rating INT(11)
);
PRIMARY KEY (book_id, author_id)
);
CREATE TABLE authors (
- id INT(11) PRIMARY KEY,
+ id INT(11) PRIMARY KEY AUTO_INCREMENT,
first_name TEXT,
last_name TEXT
);
=head2 PostgreSQL
-B<TODO>
+B<TODO> -- Please see the latest version of this document for possible updates:
+L<http://dev.catalyst.perl.org/repos/Catalyst/trunk/Catalyst-Runtime/lib/Catalyst/Manual/Tutorial/Appendices.pod>
=head1 APPENDIX 3: IMPROVED HASHING SCRIPT
}
-
=head1 AUTHOR
Kennedy Clark, C<hkclark@gmail.com>
Please report any errors, issues or suggestions to the author. The
-most recent version of the Catlayst Tutorial can be found at
+most recent version of the Catalyst Tutorial can be found at
L<http://dev.catalyst.perl.org/repos/Catalyst/trunk/Catalyst-Runtime/lib/Catalyst/Manual/Tutorial/>.
Copyright 2006, Kennedy Clark, under Creative Commons License