Conventions Used in this tutorial

Some of our conventions get larger sections of their very own. Coding conventions are discussed in "Developing with Style" in "Common Practices". In a sense, our lexical conventions are given in the Glossary (our lexicon).

The following typographic conventions are used in this tutorial:

We give lots of examples, most of which are pieces of code that should go into a larger program. Some examples are complete programs, which you can recognize because they begin with a #! line. We start nearly all of our longer programs with:

#!/usr/bin/perl


Still other examples are things to be typed on a command line. We've used % to indicate a generic shell prompt:

% perl -e 'print "Hello, world.\n"' Hello, world.


This style is representative of a standard Unix command line, where single quotes represent the "most quoted" form. Quoting and wildcard conventions on other systems vary. For example, many command-line interpreters under MS-DOS and VMS require double quotes instead of single quotes when you need to group arguments with spaces or wildcards in them.