<?xml version="1.0" encoding="windows-1252"?>
<node id="602631" title="Re^5: Problem with IO::Select" created="2007-02-28 20:07:52" updated="2007-02-28 15:07:52">
<type id="11">
note</type>
<author id="56130">
Thelonius</author>
<data>
<field name="doctext">
You probably meant to write:&lt;code&gt;
while ($rh-&gt;recv($rx_txt, 1024) &gt; 0) {
  $buff .= $rx_txt;
}
&lt;/code&gt;
But that's not good code when using 'select'.  That's only okay if you're only handling one connection at a time.  If you're only handling one connection at a time, don't use select.
&lt;p&gt;
Also, I hope you know that adding a file handle for "~/.somefile" only makes sense if it's a fifo (named pipe).     
&lt;p&gt;
There are actually a lot of problems with your code.  You should probably look at something somebody else has written.  I recommend &lt;a href="http://www.oreilly.com/catalog/perlckbk2/"&gt;The Perl Cookbook&lt;/a&gt;, although there are a lot of free examples scattered about the internet.</field>
<field name="root_node">
602621</field>
<field name="parent_node">
602628</field>
</data>
</node>
