I thought about something like:
No need for that. See perlintro and use
s/\r\n\z//; # or $line =~ s/\r\n\z//;
In reply to Re^3: Win32/Linux portability
by Anonymous Monk
in thread Win32/Linux portability
by thelycaeum
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |