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";
www.com | www.net | www.org
Results (99 votes). Check out past polls.