http://www.perlmonks.org?node_id=280194


in reply to Re: Re: Re: Re: Perl Idioms Explained - $|++
in thread Perl Idioms Explained - $|++

Here's intriguing:) ??

perl -e"autoflush STDOUT, 1;" Can't locate object method "autoflush" via package "IO::Handle" at -e +line 1.

Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
If I understand your problem, I can solve it! Of course, the same can be said for you.

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: Perl Idioms Explained - $|++
by sauoq (Abbot) on Aug 02, 2003 at 00:33 UTC

    This will clear that up some:

    $ perl -le 'print ref *STDOUT{IO}' IO::Handle

    The note in the BUGS section of the IO::Handle pod is explanatory too:

    BUGS Due to backwards compatibility, all filehandles resemble object +s of class "IO::Handle", or actually classes derived from that class +. They actually aren't. Which means you can't derive your own class f +rom "IO::Handle" and inherit those methods.

    -sauoq
    "My two cents aren't worth a dime.";