in reply to Re: Parsing Test File
in thread Parsing Test File

Just for completeness' sake, I'd like to mention one should always prefer chomp over chop for stripping end-of-line characters. The most obvious example of why is if the last line in the file has no trailing newline. In that case chop will break - it will eat a character from your payload. chomp will still do the right thing (which is nothing, in this case).

Unless you really want to remove the last character of every line, regardless of what that may be, you shouldn't chop.