It prints this:perl -MData::Dumper -e ' $key = "test text\r\n"; chomp $key; print Dumper $key; '
How can we make it to print:$VAR1 = 'test text ';
Yes, I want the whitespace in between "test" and "text".$VAR1 = 'test text';
In reply to How to remove a carriage return (\r\n) by monkfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |