Tinkering with Perl

Jonathan's Corner (Search & Sitemap) > Writing > Miscellaneous Nonfiction > Tinkering with Perl
Skip Back  Previous  43  44  45  46  47  48  49  50  51  52  Next  Skip Forward
Printer-Friendly Version

Sample programs

Here, we will look at a couple of sample programs, to get an idea of how they tick -- how one might put the pieces together to make something. What I have done is a lot like showing you a number of Lego blocks all by themselves -- here is a hint on how you might put them together.

We will look at two programs -- one that keeps track of your friends and their pets, and another that keeps a running average of numbers it is given.

I would like for you to read over them, see the explanations, understand them -- and then see what you can do with them. Can you modify them? Can you build something else from scratch? Try it!

See also:

Friends and pets - Running average

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  43  44  45  46  47  48  49  50  51  52  Next  Skip Forward
Printer-Friendly Version