On 11/8/06, Jen Spinney <[EMAIL PROTECTED]> wrote:


Thanks Jay and Tom!  I added this little bit to my script:

select (CHILD);
$| = 1;
select (STDOUT);

and it worked just as I expected it to.  It's interesting, though,
that I've been working with sockets a bunch through IO::Socket and my
print statements seem to print to the socket stream immediately.  Is a
good practice to set the autoflush to one for socket filehandles as
well?

Thanks again,
Jen


That depends; try 'perldoc IO::Socket' and see what pops up. The
version I currently have installed says in big letters:

          NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE

          As of VERSION 1.18 all IO::Socket objects have autoflush turned on
          by default. This was not the case with earlier releases.

          NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE

Yours may say something different. It's usually a good idea to read
the perldoc for any module you use.

HTH,

-- jay
--------------------------------------------------
This email and attachment(s): [  ] blogable; [ x ] ask first; [  ]
private and confidential

daggerquill [at] gmail [dot] com
http://www.tuaw.com  http://www.downloadsquad.com  http://www.engatiki.org

values of β will give rise to dom!

Reply via email to