in reply to Re^2: chomp() is confusingin thread Why chomp() is not considering carriage-return
If you want to chomp \r\n, set $/ to \r\n:
local $/ = "\r\n";
$one = "Hello\r\n";
print "Before chomp: " , length($one) , "\n";
print "After Chomp: " , length($one) , "\n";
Once (shame on you!)
Twice (shame on me!)
More often than I'd like to be
All the time
Just when answering stupid polls
Who you callin' a fool?
I refuse to vote in this ridiculous poll
Results (493 votes). Check out past polls.