Harry Putnam wrote:
"John W. Krahn" <jwkr...@shaw.ca> writes:
[...]
From:
http://www.rfc-editor.org/rfc/rfc5322.txt
<QUOTE>
2.2. Header Fields
[...]
(and even within some of the lexical tokens), folding SHOULD be
limited to placing the CRLF at higher-level syntactic breaks. For
CRLF is mentioned in several places in rfc5322 as being used to fold.
I used a newline and a unix newline isn't the same as CRLF is it?
No. But you can use the Socket (or IO::Socket) module to import that
constant:
perldoc Socket
[ SNIP ]
Also, some common socket "newline" constants are provided: the
constants "CR", "LF", and "CRLF", as well as $CR, $LF, and $CRLF,
which map to "\015", "\012", and "\015\012". If you do not want
to use the literal characters in your programs, then use the
constants provided here. They are not exported by default, but
can be imported individually, and with the ":crlf" export tag:
John
--
The programmer is fighting against the two most
destructive forces in the universe: entropy and
human stupidity. -- Damian Conway
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/