Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.322.647 Times

Capture::Tiny 0.08

Company: David Golden
Date Added: August 11, 2013  |  Visits: 378

Capture::Tiny

Report Broken Link
Printer Friendly Version


Product Homepage
Download (33 downloads)



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.<br /><br />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.<br />USAGE ^<br /><br />The following functions are available. None are exported by default.<br />capture<br /><br /> ($stdout, $stderr) = capture &code;<br /> $stdout = capture &code;<br /><br />The capture function takes a code reference and returns what is sent to STDOUT and STDERR. In scalar context, it returns only STDOUT. If no output was received, returns an empty string. Regardless of context, all output is captured -- nothing is passed to the existing handles.<br /><br />It is prototyped to take a subroutine reference as an argument. Thus, it can be called in block form:<br /><br /> ($stdout, $stderr) = capture {<br /> # your code here ...<br /> };<br /><br />capture_merged<br /><br /> $merged = capture_merged &code;<br /><br />The capture_merged function works just like capture except STDOUT and STDERR are merged. (Technically, STDERR is redirected to STDOUT before executing the function.) If no output was received, returns an empty string. As with capture it may be called in block form.<br /><br />Caution: STDOUT and STDERR output in the merged result are not guaranteed to be properly ordered due to buffering.<br />tee<br /><br /> ($stdout, $stderr) = tee &code;<br /> $stdout = tee &code;<br /><br />The tee function works just like capture, except that output is captured as well as passed on to the original STDOUT and STDERR. As with capture it may be called in block form.<br />tee_merged<br /><br /> $merged = tee_merged &code;<br /><br />The tee_merged function works just like capture_merged except that output is captured as well as passed on to STDOUT. As with capture it may be called in block form.<br /><br />Caution: STDOUT and STDERR output in the merged result are not guaranteed to be properly ordered due to buffering.

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Block Called Capture Capture Merged Captured Codethe Function Merged Ordered Output Passed Returns Stderr Stdout String Tee Merged Works
Users rating: 0/10

License: Freeware Size: 20.48 KB
USER REVIEWS
More Reviews or Write Review


CAPTURE::TINY RELATED
Development Tools  -  Linearity Of Block Function Square Simulink 1.0
After publishing my new block simulink library Function Square,Y output ,and Xput i shoz lineqrity chqnging input vqlue.
10 KB  
Miscellaneous  -  Python XTEA Encryption 1.4
The module implements the basic XTEA block encryption algorithm (`xtea_encrypt`/`xtea_decrypt`) and also provides a higher level `crypt` function which symmetrically encrypts/decrypts a variable length string using XTEA in OFB mode as a key...
 
Miscellaneous  -  Determining the current functions name 1.3
This script defines the whoaminow() function that can be used inside a function to determine, at the time it is called, the name under which that function has been invoked.
 
Networking  -  Admiyn Twitter 1.2
This plugin I called as Admiyn Twitter and its function is that: 1- Change your Twitter status whenever you publish a new article. 2- Change your Twitter status whenever some post receive a new comment.This version supports multiple twitter users,...
10 KB  
Multi-Purpose Audio Players  -  All Free DVD to FLV/SWF Converter 5.9.9
All Free DVD to FLV/SWF Converter, perfect easy-to-use FLV solution, can convert DVD-9 and DVD-5 to FLV format with ease and speed. The fresh and clear-cut user interface will lead you to the correct destination directly and simply. The converter...
6.56 MB  
Modules  -  Has More 1.0
The function is has_more() and it returns true or false.InstallationUnpack and upload it to the /wp-content/plugins/ directory.Activate the plugin through the 'Plugins' menu in WordPress. Requirements: - WordPress 2.0 or higher
 
Communication  -  Example of Lempel Ziv coding 1.0
[dec_cod, code_bin, code_book] = lempel_ziv(alf, str)It's a function with three output variables and two input variables.'dec_cod' is the decimal code that codify the input string 'str'.'code_bin' is the binary code of the string obtained from the...
10 KB  
Snippets  -  date and time formatting 1.0
date and time formatting introduces a function that returns a formatted string showing date, time and/or seconds. 
 
Text Management  -  Simple string checksum 1.0
This one line function adds up the ascii values of a string and returns the total as a checksum. Also included is a variation which returns the checksum mod 256 (so it can be used as a single byte).The same technique can be used to add up a list...
 
Text Management  -  ASCII encoding guess 1.0
This function could be used to check if a string contains only ASCII characters.
 
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB