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

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

Serving Software Downloads in 976 Categories, Downloaded 29.547.144 Times

Capture::Tiny 0.08

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

Capture::Tiny

Report Broken Link
Printer Friendly Version


Product Homepage
Download (16 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  
Finance  -  ProfitStars mRDC 2.5
POINT. SHOOT. DEPOSIT. This application is intended for existing users of the Mobile Remote Deposit Capture service only and requires on Mobile Remote Deposit Capture servers. It does not function without such an account. Contact ProfitStars for...
1.2 MB  
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  
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  -  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  
Linux Software  -  SLAX 6.0+
Slax is a modern, portable, small and fast Linux operating system with a modular approach and outstanding design. Despite its small size, Slax provides a wide collection of pre-installed software for daily use, including a well organized graphical...
190 KB  
Linux Software  -  GTK+ 2.5
GTK+, which stands for the GIMP Toolkit, is a library for creating graphical user interfaces for the X Window System. It is designed to be small, efficient, and flexible. GTK+ is written in C with a very object-oriented approach. Language bindings...
60 MB  
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB