% Title: Perl 5 Tutorial
% Author: Chan Bernard Ki Hong

% Filename: perltut.tex
% Description: Master Outline
% Last Updated on 14/06/2002

% Remarks: No content should be placed in this file.

% Set to "twoside" for a printed book
\documentclass[11pt]{book}

% Preamble ==================================================
% <!-- Packages imported -->
\usepackage{pslatex}
\usepackage{color}
%\usepackage{fullpage}
\definecolor{internalLinksColor}{rgb}{0,0.4,0}
\usepackage[a4paper,includefoot,headheight=14pt,headsep=0.5cm,footskip=1cm,margin=2.6cm]{geometry}		% set margins
\usepackage[dvips,colorlinks=true,urlcolor=blue,linkcolor=internalLinksColor,pdfborder={0 0 0}]{hyperref}	% TODO: after fixing link colors
\usepackage{moreverb}
\usepackage{listings}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{framed}
\usepackage{multicol}
\usepackage{pagecounting}
\usepackage{makeidx}
\usepackage[nottoc]{tocbibind}
\usepackage{marvosym}
\usepackage{atbeginend}
\usepackage{textcomp}

% use put, pad, ppl, pwm, bch or cmr
\renewcommand{\familydefault}{pmo}		% default font: Myriad
%\lstloadlanguages{Perl}
\lstset{%
	breaklines=true,%
	tabsize=4,%
	numbers=left,%
	numberstyle=\small,%
	stepnumber=1,%
	linewidth=\linewidth,%
	flexiblecolumns=false,%
	basicstyle=\ttfamily,%
	basewidth=0.5em,%
	numbersep=13pt,%
	prebreak=\P,%
	literate={~}{{$\sim$}}{1}
}
%	prebreak=\space\P%

% <!-- Macros in external files -->
\input{macros}

% <!-- PDF Document Information -->
\hypersetup{%
	pdftitle = {Perl 5 Tutorial, First Edition},
	pdfsubject = {PDF version of the Perl 5 Tutorial},
	pdfkeywords = {Perl, tutorial, pdf},
	pdfauthor = {Chan Bernard Ki Hong},
	pdfcreator = {LaTeX2e with hyperref package},
}

\makeindex

% <!-- Miscellaneous declarations -->
\parindent=0pc		% No paragraph indenting 
\topmargin=-.9cm
\addtolength{\textheight}{.9cm}
\pagestyle{plain}
\definecolor{shadecolor}{rgb}{0.8,0.8,0.8}

% Main document ==================================================
\begin{document}

{\usefont{T1}{ppl}{m}{n}				% use Palatino
\input{titlepage}		% Cover Page
}

\pagestyle{empty}
Perl is copyright by Larry Wall.\\
Linux is a trademark of Linus Torvalds.\\
Unix is a trademark of AT\&T Bell Laboratories.

\vspace{0.5in}
Perl 5 Tutorial\\
First Edition\\
Author: Chan Bernard Ki Hong (\texttt{webmaster@cbkihong.com})\\
Web site: \link{http://www.cbkihong.com}{http://www.cbkihong.com} \\
Date of Printing: \today \\
Total Number of Pages: \totalpages{} \\
Prepared from \LaTeX\ source files by the author.\\

\vspace*{1.5cm}

\textcopyright\ 2001--2003 by Chan Bernard Ki Hong.

\vspace*{1.5cm}
%\textbf{Important: Please note that this is a preview edition of the document %
%and is released for collection of feedback purposes only. Therefore, drastic %
%modifications may be made to this document at any time until it is completed and %
%finalized.} \\

\vspace{2.5cm} 

While the author of this document has taken the best effort in enhancing the technical accuracy
as well as readability of this publication, please note that
this document is released ``as is'' without guarantee for accuracy or suitability of any kind.
The full text of the terms and conditions of usage and distribution can be found at the end of 
this document. \\

In order to further enhance the quality of this publication, the author would like to hear from you,
the fellow readers. Comments or suggestions on this publication are very much appreciated. 
Please feel free to forward me your comments 
through the \link{http://www.cbkihong.com/index.pl?page=feedback\&lang=e\#email}{email feedback form} or
the \link{http://forum.cbkihong.com}{feedback forum} on the author's Web site. \\ 


\frontmatter

\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{\chaptername\ \thechapter \hspace{0.3cm} #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection \hspace{0.3cm} #1}}
\fancyhead[LE]{\bfseries \thepage \hspace{0.5cm} \leftmark}
\fancyhead[CE,RE]{}
\fancyhead[LO,CO]{}
\fancyhead[RO]{\bfseries \rightmark \hspace{0.5cm} \thepage}
%\renewcommand{\footrulewidth}{0.4pt}
\fancyfoot[LO,CO,RO,LE,CE,RE]{}

\pdfbookmark[0]{Table Of Contents}{toc}
\tableofcontents \newpage
\input{preface}
\mainmatter
\sloppy
\newcounter{examplectr}[chapter]
\addtocounter{examplectr}{1}
\input{intro}
\input{getstart}
\input{basicds}
\input{op}
\input{scope}
\input{references}
\input{oop}
\input{files}
\input{regex}
\input{eval}
\input{cgi}
\appendix
\renewcommand{\chaptername}{Appendix}
\input{advhash}
\input{cpan}
\input{webserver}
\input{unixprimer}
%\input{bnf}
\input{todo}

\printindex

\input{terms}

\end{document}
