in reply to Re: multiple programs sharing redirected STDERR
in thread multiple programs sharing redirected STDERR

Thanks, though this leads to more questions:

1. The documentation describes $| as working with the currently selected output channel. STDERR also counts as the currently selected output channel?

2. Documentation for IO::Handle seems to say that
# setvbuf is not available by default on Perls 5.8.0 and later.

The pod for Handle.pm goes on to say that:

WARNING: The IO::Handle::setvbuf() is not available by default on Perls 5.8.0 and later because setvbuf() is rather specific to using the stdio library, while Perl prefers the new perlio subsystem instead +.
From my ActiveState documentation, it does not look like this is included.

Also, it looks like I can't use garden variety warn calls with IO::Handle, I'll need to change these all to object references? I assume system errors for STDERR will magically know to write to the designated file?

Replies are listed 'Best First'.
Re^3: multiple programs sharing redirected STDERR
by tbone1 (Monsignor) on Apr 26, 2005 at 18:26 UTC
      1. The documentation describes $| as working with the currently selected output channel. STDERR also counts as the currently selected output channel?

    I believe STDOUT is the default 'currently selected output channel'. See the description of 'select' in the Camel. (It's on page 210 of my very old version.)

    --
    tbone1, YAPS (Yet Another Perl Schlub)
    And remember, if he succeeds, so what.
    - Chick McGee