tr/\r//d for (@lines);
I'd probably use a chomp while reading lines in, though, depending on your OS. If that's not possible, I'd do the transliteration on each line while reading them in.
In reply to Re: How do I strip \r (CR) globally from an array?
by chromatic
in thread How do I strip \r (CR) globally from an array?
by AF_INET
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |