[Boulder.pm] perl/HTML/XHTML

Charles Albrecht charlesa at pobox.com
Fri Oct 18 13:05:19 CDT 2002


And because I generally want to retain all the line endings in the original.

At 12:00 PM -0600 10/18/2002, Charles Albrecht wrote:
>I go with the octal literals for portability - \r and \n are not equivalent to \015 and \012 on all platforms.
>
>-C
>
>At 11:49 AM -0600 10/18/2002, Keanan Smith wrote:
>>Err That should have been:
>>s/[\r\n]+/\n/go;
>>
>>-----Original Message-----
>>From: Charles Albrecht [mailto:charlesa at pobox.com]
>>Sent: Friday, October 18, 2002 11:37 AM
>>To: boulder-pm at mail.pm.org
>>Subject: Re: [Boulder.pm] perl/HTML/XHTML
>>
>>$Content =~ s/(\015\012|\012|\015)/\n/go;




More information about the Boulder-pm mailing list