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";
1st - Yeah Mars!
10th - Someone else first
100th - Mars, the next generation
1000th - I want to see some stability
10000th - I want my White Castle
Never - Someone's got to stay on Earth
None - I've already been to Mars enough times
N/A - I was born on Mars
All of them, as I will be the pilot
Results (70 votes). Check out past polls.