IO::Pipe::Producer 1.5
Sponsored Links
IO::Pipe::Producer 1.5 Ranking & Summary
File size:
0.006 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
982
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!"");
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
IO::Pipe::Producer 1.5 Keywords
IO
Producer 1.5
Perl module
hello world
FH
subroutine
new
stdout
stderr
reference
IO::Pipe::Producer
IOPipeProducer
IO::Pipe::Producer 1.5
Libraries
Programming
Bookmark IO::Pipe::Producer 1.5
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
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Standard streams
perl subroutine
perl stdout
stdout_fileno
subroutines in perl
hello world travel
vbscript subroutine
redirect stdout
define a subroutine
batch real producer 1.5.3.1
java hello world
perl modules
fortran subroutine
subroutine perl
hello world java program
stdout file descriptor
stdin stdout
hello world java
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
Latest Software
Popular Software
Favourite Software