Drjt chapter3

Completed Chapter 3 of Learning Perl
You're removing the newlines with chomp, but then optionally putting them back on. Did you consider making the chomp optional? That way you only need the one print statement.