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.
In reply to Re: How to capture STDOUT/STDERR of a function
by sintadil
in thread How to capture STDOUT/STDERR of a function
by johnnywang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |