Capture STDOUT and STDERR from Perl, XS or external programs

Edit Package perl-Capture-Tiny
http://search.cpan.org/dist/Capture-Tiny/

Capture::Tiny 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 the IO::CaptureOutput manpage, which
provides similar functionality without the ability to tee output and with
more complicated code and API.

Refresh
Refresh
Source Files
Filename Size Changed
Capture-Tiny-0.18.tar.gz 0000029485 28.8 KB
perl-Capture-Tiny.changes 0000004415 4.31 KB
perl-Capture-Tiny.spec 0000002498 2.44 KB
Revision 10 (latest revision is 26)
Stephan Kulow's avatar Stephan Kulow (coolo) accepted request 121940 from Stephan Kulow's avatar Stephan Kulow (coolo) (revision 10)
- updated to 0.18
  Added
  - When capture or tee are called in void context, Capture::Tiny
    skips reading back from the capture handles if it can do so safely
  Fixed:
  - Tied STDIN is always localized before redirections to avoid tees
    hanging on MSWin32
    
  - Copying and reopening STDIN is necessary to avoid tees hanging on MSWin32.
  Fixed:
  - Avoids reopening STDIN while setting up a capture, which avoids
    some problems with pathological tied filehandle implementations
    such as in FCGI
  Tested:
  - Re-enabled tied STDIN testing for MSWin32 to see if changes above
    avoid crashes seen historically
Comments 0
openSUSE Build Service is sponsored by