On Feb 18, 2008 11:17 AM, David Moreno <[EMAIL PROTECTED]> wrote:
>
> On Feb 17, 2008 3:48 PM, Rob Dixon <[EMAIL PROTECTED]> wrote:
>
> >   use IO::Handle;
> >   STDOUT->autoflush;
> >
> > to the start of your program.
>
>
> What's the difference from this to setting $| to true?
snip

In this specific code, not a whole lot, however, in the following code
it matters a great deal:

select STDERR:
STDOUT->autoflush;

The $| variable only affects the currently selected file handle.
Using IO::Handle is much more readable and maintainable.

-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to