Chomp removes the line ending native to your platform.Actually, chomp knows nothing about your platform. It removes $/ at the end of the string, as borisz has correctly indicated above.
In reply to Re^2: How to remove a carriage return (\r\n)
by VSarkiss
in thread How to remove a carriage return (\r\n)
by monkfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |