0.7. Conventions Used in This Book
Some of our conventions get larger sections of their very own. Coding conventions are discussed in Section 0.3, "Programming with Style" in Chapter 24, "Common Practices". In a sense, our lexical conventions are given in the Glossary (our lexicon).
The following typographic conventions are used in this book:
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:
Still other examples are things to be typed on a command line. We've used % to indicate a generic shell prompt:#!/usr/bin/perl
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.% perl -e 'print "Hello, world.\n"' Hello, world.
Copyright © 2002 O'Reilly & Associates. All rights reserved.