in reply to Help Perl Program - I have compilation errors don't know where
Add the following lines to your code if you haven't. Helps you solve your issues by yourself.