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.189.394 Times

IO::Pipe::Producer 1.5

  Date Added: March 03, 2010  |  Visits: 1.310

IO::Pipe::Producer

Report Broken Link
Printer Friendly Version


Product Homepage
Download (101 downloads)



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!"");.

Requirements: No special requirements
Platforms: Linux
Keyword: Fh Hello World Io Iopipeproducer Libraries Module New Perl Module Programming Stderr Stdout Subroutine
Users rating: 0/10

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


IO::PIPE::PRODUCER RELATED
Utilities  -  Apache Hello World Benchmarks 1.04
Apache Hello World Benchmarks is a benchmarking tool that seeks to give a sense of Web application execution speed on various software platforms running under the Apache Web server. Benchmarks can vary greatly from system to system, so this tool...
37.89 KB  
Libraries  -  PurpleWiki::InlineNode 0.94
PurpleWiki::InlineNode Perl module offers inline node object. SYNOPSIS use PurpleWiki::InlineNode; # Create node of type text and content Hello, world! my $inlineNode1 = PurpleWiki::InlineNode->new(type => text, content => Hello, world!);...
143.36 KB  
Libraries  -  IO::Multiplex 1.08
IO::Multiplex is a Perl module that can manage IO on many file handles. SYNOPSIS use IO::Multiplex; my $mux = new IO::Multiplex; $mux->add($fh1); $mux->add(*FH2); $mux->set_callback_object(...); $mux->listen($server_socket); $mux->loop;...
14.34 KB  
Libraries  -  GD::Graph::Polar 0.15
GD::Graph::Polar is a Perl module to make polar graph using GD package. SYNOPSIS use GD::Graph::Polar; my $obj=GD::Graph::Polar->new(size=>480, radius=>100); $obj->addPoint (50=>25); $obj->addPoint_rad (50=>3.1415); $obj->addGeoPoint...
47.1 KB  
Libraries  -  Regexp::Ignore 0.03
Regexp::Ignore is a Perl module that let us ignore unwanted parts, while parsing text. WARNING This is an alpha code. Really. It was written in the end of 2001. It is not yet checked much. The only reason I submit it to CPAN that early is to...
71.68 KB  
Libraries  -  Perl6::Builtins 0.0.3
Perl6::Builtins is a Perl module that provides erl 5 versions of the new Perl 6 builtins. SYNOPSIS use Perl6::Builtins qw( system ); system $system_cmd or die "Could not $system_cmd: $!"; my $package = caller->{package}; my $file =...
4.1 KB  
Libraries  -  Locale::TextDomain 1.16
Locale::TextDomain is a Perl Interface to Uniforum Message Translation. SYNOPSIS use Locale::TextDomain (my-package, @locale_dirs); use Locale::TextDomain qw (my-package); my $translated = __"Hello World!n"; my $alt = $__{"Hello...
460.8 KB  
Libraries  -  Net::YahooMessenger 0.16
Net::YahooMessenger is a Perl interface to the Yahoo!Messenger IM protocol. SYNOPSIS use Net::YahooMessenger; my $yahoo = Net::YahooMessenger->new( id => your_yahoo_id, password => your_password, ); $yahoo->login or die "Cant login...
16.38 KB  
Security Tools  -  THC-FuzzyFingerprint 0.0.8
Welcome to the world of Fuzzy Fingerprinting, a new technique to attack cryptographic key authentication protocols that rely on human verification of key fingerprints. It is important to note that while fuzzy fingerprinting is an attack against a...
204.8 KB  
Libraries  -  Math::XOR 0.02
Math::XOR is a package to handle XOR encryption of string buffers. SYNOPSIS use XOR; print xor_buf("hello", "world"), "n"; The XOR module allows you to quickly XOR two strings together. This is the only method of encryption that (assuming...
2.05 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB