in reply to Re: how to use chop / chomp effectively
in thread how to use chop / chomp effectively

You've committed the cardinal sin of not checking the return value of your call to open :-)