in reply to Perl 101 Problem

4.0? I suggest upgrading your perl. There is nothing wrong with the code.
however, what does it tell you when you open FILE,$filename or die $!?

holli, regexed monk