Tinkering with Perl

Jonathan's Corner (Search & Sitemap) > Writing > Miscellaneous Nonfiction > Tinkering with Perl
Skip Back  Previous  8  9  10  11  12  13  14  15  16  17  Next  Skip Forward
Printer-Friendly Version

Files

A directory is a place to keep things on a computer; a file is what sort of thing you actually keep. We are going to be interested in creating, and modifying, Perl programs.

A file should have a name consisting of letters, numbers, and/or underscores. Perl programs should end by having ".pl" added to the end. Here are some examples of good filenames:

hello_world.pl
test.pl
list_pets.pl

Each file (of the sort we're working with) will hold one program, and (for now) each program will be stored in one file. So a file is where you store a program. You will create these programs with editors, and then make them usable by setting the permissions.

See also:

Unix preliminaries - Directories - ls - Editors - Permissions

Tinkering with Perl is a free book that provides an introduction to programming in Perl, as well as a basic reference for things like foreach in Perl, if-then, and if-then-else, in addition to providing a glossary where you can find definitions for concatenate and other terms.

Tinkering with Perl may be one of the most popular offerings on this site, but it's not the only attraction. You can read a tongue-in-cheek Game Review: Meatspace, read an even more offbeat customer service survey (whether or not you actually fill it out), and spend a few minutes wishing your boss would read, The Administrator Who Cried, "Important!" (Not to mention that there are other things you can read here besides tech stuff, from Janra Ball: The Headache to The Spectacles.)

Read more...

Top

Jonathan's Corner (Search & Sitemap) > Writing > Miscellaneous Nonfiction > Tinkering with Perl
Skip Back  Previous  8  9  10  11  12  13  14  15  16  17  Next  Skip Forward
Printer-Friendly Version