Tinkering with Perl

(Search & Sitemap) > Writing > Miscellaneous Nonfiction > Tinkering with Perl
Skip Back  Previous  57  58  59  60  61  62  63  64  65  66  Next  Skip Forward
Printer-Friendly Version

Definition: Code

Code is a word we use to refer to the "stuff" a program is made out of, just as 'wood' is a word we use to refer to the "stuff" a board is made out of. Here is an example of code:

#!/usr/local/bin/perl
#
# Print out the phrase "Hello, world!"
#

print "Hello, world!\n";

In this case, this code is all of a program; code can also be some of a program.

Can you identify the different parts of this program?

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  57  58  59  60  61  62  63  64  65  66  Next  Skip Forward
Printer-Friendly Version