in reply to How to capture STDOUT/STDERR of a function
Hi, if I have a function that writes something to STDOUT or STDERR, for example:
If you want to capture both STDOUT and STDERR, why not have a look at IPC::Open3? You need Open3 (AFAIK) if you want to capture STDERR. As a plus, I'm fairly certain that IPC::Open3 doesn't require a version of Perl >= 5.8. In fact, I just grepped through my perldelta pages and my perl561delta specifies that it was first included at that release.
|
|---|