Tinkering with Perl

(Search & Sitemap) > Writing > Miscellaneous Nonfiction > Tinkering with Perl
Skip Back  Previous  27  28  29  30  31  32  33  34  35  36  Next  Skip Forward
Printer-Friendly Version

Input and output

One important thing for programs to be able to do, is to be able to pay attention to what people say to them, and say things to people.

There are varying ways that programs do this; here, I will address a couple of the simpler ways. They both involve the keyboard. One reads a line in from the keyboard to a variable -- that is, it reads in everything the user types, until he hits return -- and the other prints out some specific text.

See also:

Statements - Input - Output

Read more...

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.)

Top

(Search & Sitemap) > Writing > Miscellaneous Nonfiction > Tinkering with Perl
Skip Back  Previous  27  28  29  30  31  32  33  34  35  36  Next  Skip Forward
Printer-Friendly Version