=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
-Although there author has not used emacs for many years (appologies to
+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:
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
);
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