in reply to Re^2: Need Help: Capture Print Outputs from a Function
in thread Need Help: Capture Print Outputs from a Function

True, but it is guarenteed to work even if someone uses print STDOUT stuff;, when select won't.

The case of that where I got bitten is when you pass \*STDOUT to some module and internally it uses

printf { $self->{fh} } "%s\n", 'stuff';

Which is not a completely uncommon scenario.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^4: Need Help: Capture Print Outputs from a Function
by ikegami (Patriarch) on May 02, 2006 at 21:29 UTC
    Good point! Maybe I'll start using argless select instead of *STDOUT.