Exercises from the book Beginning Perl.