in reply to Perl 101 Problem

did you check the line breaks? Line breaks on Windows are different from that on Unix, and are a frequent source of bugaboo for cross-platform developers.

And, while at it, upgrade to the latest Perl wherever possible.