<?xml version="1.0" encoding="windows-1252"?>
<node id="282630" title="Re: An introduction to POE" created="2003-08-10 10:53:11" updated="2005-07-07 14:34:19">
<type id="11">
note</type>
<author id="18800">
jeffa</author>
<data>
<field name="doctext">
Worked fine for me on Linux. My only recomendation would
be to import &lt;tt&gt;CRLF()&lt;/tt&gt; from &lt;tt&gt;IO::Socket&lt;/tt&gt;
&lt;code&gt;
use IO::Socket qw(:crlf);
local $/ = CRLF;          # Cygwin, Linux, Mac, Winders, all
&lt;/code&gt;
Or just use the &lt;tt&gt;CRLF()&lt;/tt&gt; constant instead of 
&lt;tt&gt;$/&lt;/tt&gt; when you print. Here is a quote from Dr. Stein's
[isbn://0201615711|Network Progamming With Perl]:
&lt;blockquote&gt;
When communicating with a line-oriented network server that
uses CRLF to terminate lines, it won't be possible to set
&lt;tt&gt;$/&lt;/tt&gt; to &lt;tt&gt;\r\n&lt;/tt&gt;. Use the explicit string
&lt;tt&gt;\015\012&lt;/tt&gt; instead. To make this less obscure, the
[cpan://Socket] and [cpan://IO::Socket] modules ... have an
option to export globals named &lt;tt&gt;$CRLF&lt;/tt&gt; and
&lt;tt&gt;CRLF()&lt;/tt&gt; that return the correct values.
&lt;/blockquote&gt;
(it is very easy to get the \r\n combo backwards ;))
&lt;p&gt;jeffa&lt;/p&gt;
&lt;font size=1&gt;
&lt;pre&gt;
L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(&lt;a href="http://jeffa.perlmonk.org/tripdid.mp3"&gt;the triplet paradiddle with high-hat&lt;/a&gt;)
&lt;/pre&gt;&lt;/font&gt;</field>
<field name="root_node">
282468</field>
<field name="parent_node">
282468</field>
</data>
</node>
