Gossamer Forum
Home : General : Internet Technologies :

Re: [vacationrentals] postfix and CRLF

Quote Reply
Re: [vacationrentals] postfix and CRLF In reply to
Hi. The normal way to get rid of this (in the scripts themselves), would be something like;

$var =~ s/\n$//;
$var =~ s/\r$//;

...or possibly;

$var =~ s/\n\r$//;

The amount of times a \r\n sneaking in on my data import scripts/plugins has cost me hours of debugging time, is unbelievable :(

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread postfix and CRLF vacationrentals 4504 Aug 11, 2004, 9:06 AM
Thread Re: [vacationrentals] postfix and CRLF
Andy 4351 Aug 11, 2004, 9:37 AM
Thread Re: [Andy] postfix and CRLF
B::Parse 4330 Aug 15, 2004, 2:04 PM
Post Re: [B::Parse] postfix and CRLF
Andy 4327 Aug 16, 2004, 12:46 AM