Tinkering with Perl

(Search & Sitemap) > Writing > Miscellaneous Nonfiction > Tinkering with Perl
Skip Back  Previous  19  20  21  22  23  24  25  26  27  28  Next  Skip Forward
Printer-Friendly Version

Lists

A list is a variable that lets you keep track of several things. If you were shopping for groceries, you'd keep a list: apples, ketchup, bread, sausage, and so on. A list is a variable that keeps track of several things, instead of just one. A list is named like a scalar, but instead of having a dollar sign ('$') in front of the name, we place an atgry ('@'). A good name for a list would be something like:

@GroceriesToBuy

See also:

Variables in general - Scalars - Hashes - Assignment of variables in general - Assignment of lists

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

(Search & Sitemap) > Writing > Miscellaneous Nonfiction > Tinkering with Perl
Skip Back  Previous  19  20  21  22  23  24  25  26  27  28  Next  Skip Forward
Printer-Friendly Version