from chomp
This safer version of "chop" removes any trailing string that corresponds to the current value of $/ (also known as $INPUT_RECORD_SEPARATOR in the English module).
In reply to Re^2: Unix and Windows CRLF vs LF
by targetsmart
in thread Unix and Windows CRLF vs LF
by SavannahLion
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |