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";
There is no Extraterrestrial life
There aren't any suitably capable Extraterrestrials
Interstellar travel is too difficult
We're too uncool / not worth the trouble
What do you mean they haven't visited?
Results (547 votes). Check out past polls.