Capture::TinyCapture STDOUT and STDERR from Perl, XS or external programs | |
Download |
Capture::Tiny Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Publisher Name:
- David Golden
- Publisher web site:
- http://search.cpan.org/~dagolden/
Capture::Tiny Tags
Capture::Tiny Description
Capture STDOUT and STDERR from Perl, XS or external programs Capture::Tiny is a Perl module that provides a simple, portable way to capture anything sent to STDOUT or STDERR, regardless of whether it comes from Perl, from XS code or from an external program. Optionally, output can be teed so that it is captured while being passed through to the original handles. Yes, it even works on Windows. Stop guessing which of a dozen capturing modules to use in any particular situation and just use this one.This module was heavily inspired by IO::CaptureOutput, which provides similar functionality without the ability to tee output and with more complicated code and API.SYNOPSIS use Capture::Tiny qw/capture tee capture_merged tee_merged/; ($stdout, $stderr) = capture { # your code here }; ($stdout, $stderr) = tee { # your code here }; $merged = capture_merged { # your code here }; $merged = tee_merged { # your code here }; Requirements: · Perl
Capture::Tiny Related Software