There's more than one way to do things | |
PerlMonks |
Re^3: Saving STDERR and displaying it laterby leriksen (Curate) |
on Jul 03, 2006 at 23:43 UTC ( [id://559062]=note: print w/replies, xml ) | Need Help?? |
If you dont want to introduce a dependency on IO::Capture::Stderr, and you only want to capture the STDERR from the die() calls, you could try this
It may be possible to replace die() with this at compile time, I've never tried the *CORE::GLOBAL trick with die(), only open(). I know there are some perl functions where not even compile-time replacement works, die() might be one of those. ...reality must take precedence over public relations, for nature cannot be fooled. - R P Feynmann
In Section
Seekers of Perl Wisdom
|
|