Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Capture::Tiny 0.20

    Download button

    No screenshots available
    Downloads: 233  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    David Golden | More programs
    Perl Artistic License / FREE
    September 23rd, 2012, 08:42 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    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
     };



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    capture STDOUT | capture STDERR | Perl module | STDOUT | STDERR | capture

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM