Main > Programming > Libraries >

IO::Pipe::Producer 1.5

IO::Pipe::Producer 1.5

Sponsored Links

IO::Pipe::Producer 1.5 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.006 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 980
Date added: 2007-02-20
Publisher: Robert W. Leach

IO::Pipe::Producer 1.5 description

IO::Pipe::Producer is a Perl module that provides two modules getSubroutineProducer and getSystemProducer.

SYNOPSIS

# Module which provides 2 methods: getSubroutineProducer
# and getSystemProducer. They take a subroutine reference
# (with associated arguments) and a system call
# respectively and return (blessed) handles on their
# streaming standard output and standard error output.


# EXAMPLES of usage

use IO::Pipe::Producer;
$obj = new IO::Pipe::Producer();
$stdout_fh =
$obj->getSubroutineProducer($subroutine_reference,
@subroutine_parameters);

# OR

use IO::Pipe::Producer;
$obj = new IO::Pipe::Producer();
($stdout_fh,$stderr_fh) =
$obj->getSubroutineProducer($subroutine_reference,
@subroutine_parameters);

# OR

use IO::Pipe::Producer;
$stdout_fh = new IO::Pipe::Producer($subroutine_reference,
@subroutine_parameters);

# OR

use IO::Pipe::Producer;
($stdout_fh,$stderr_fh) =
new IO::Pipe::Producer($subroutine_reference,
@subroutine_parameters);

# Then you can read the returned handles like any other
# file handle...

while(<$stdout_fh>)
{print "STDOUT From Producer: $_"}
while(<$stderr_fh>)
{print "STDERR From Producer: $_"}

# You can also do the same thing with system calls using
# the getSystemProducer subroutine. However, this feature
# is not accessible via the new constructor

use IO::Pipe::Producer;
$obj = new IO::Pipe::Producer();
$stdout_fh =
$obj->getSystemProducer("echo "Hello World!"");

use IO::Pipe::Producer;
$obj = new IO::Pipe::Producer();
($stdout_fh,$stderr_fh) =
$obj->getSystemProducer("echo "Hello World!"");

# However, this is exactly the same as:

use IO::Pipe::Producer;
$stdout_fh = new Producer(sub{system(@_)},
"echo "Hello World!"");

# OR

use IO::Pipe::Producer;
($stdout_fh,$stderr_fh) =
new IO::Pipe::Producer(sub{system(@_)},
"echo "Hello World!"");

IO::Pipe::Producer 1.5 Screenshot

Advertisements

IO::Pipe::Producer 1.5 Keywords

Bookmark IO::Pipe::Producer 1.5

Hyperlink code:
Link for forum:

IO::Pipe::Producer 1.5 Copyright

WareSeeker periodically updates pricing and software information of IO::Pipe::Producer 1.5 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of IO::Pipe::Producer 1.5 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
MyCMS perl module provides the MN::CMS Perl module used by the MyCMS. Free Download
OpenGeDB Perl module is a module to access the OpenGeoDB database and calculate all ZIP codes in a certain radius. Free Download
libCoroutine is a simple stackfull coroutine implementation, largely based on ucontext and fibers. Free Download
IO::Util is a selection of general-utility IO function. Free Download
Libtubo Interprocess Communication is a small and simple library to run processes in the background and communicate via stdout. Free Download
IO::Multiplex is a Perl module that can manage IO on many file handles. Free Download
Bio::Tree::DistanceFactory is a Perl module to construct a tree using distance based methods. Free Download
Puppet::Log provides a log facility with an optional Tk display. Free Download