in reply to chop() and chomp()
this could also be \r\n if on windows platform
Did you try this?
\n is a logical end of line character which is mapped to the correct physical value by Perl's IO library. If this wasn't true, then porting apps from Unix to Windows would be a lot harder than it currently is.--
"The first rule of Perl club is you do not talk about
-- Chip Salzenberg