[wplug] Perl script - need help

Brian Medley pub-lists-wplug at bmedley.org
Wed Jan 23 18:33:06 EST 2008


On Wed, Jan 23, 2008 at 04:27:48PM -0500, scoob8000 wrote:

> I could be mistaken, I've never played with perl at all.  But I typically
> use \r\n (Carriage Return, Newline) in PHP.

Good point.

perldoc perlipc has this to say:

    Internet Line Terminators
    
    The Internet line terminator is "\015\012".  Under ASCII variants of
    Unix, that could usually be written as "\r\n", but under other systems,
    "\r\n" might at times be "\015\015\012", "\012\012\015", or something
    completely different.  The standards specify writing "\015\012" to be
    conformant (be strict in what you provide), but they also recommend
    accepting a lone "\012" on input (but be lenient in what you require).
    We haven't always been very good about that in the code in this man-
    page, but unless you're on a Mac, you'll probably be ok.

-- 
Brian Medley


More information about the wplug mailing list