Notice the '$' mark in the line: it anchors the '\r\n' to the end of string. Meaning, replace \r\n only if it appears as the last thing in the string.$fix =~ s!\r\n$!!s;
In reply to Re: Re: What is clear code ?
by abstracts
in thread What is clear code ?
by mandog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |