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 30.067.627 Times

IO::Pipe::Producer 1.5

  Date Added: March 03, 2010  |  Visits: 1.004

IO::Pipe::Producer

Report Broken Link
Printer Friendly Version


Product Homepage
Download (78 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
IO::PIPE::PRODUCER RELATED
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  -  PDL::IO::Misc 2.4.3
PDL::IO::Misc is a Perl module with misc IO routines for PDL. rcols() Read ASCII whitespaced cols from a file into piddles and perl arrays (also see "rgrep()"). There are two calling conventions - the old version, where a pattern can be...
2.1 MB  
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  -  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  -  CAD::Drawing::IO::Image 0.02
CAD::Drawing::IO::Image is a Perl module with output methods for images. Requisite Plug-in Functions See CAD::Drawing::IO for a description of the plug-in architecture. check_type Returns true if $type is "img" or $filename matches one of...
5.12 KB  
Libraries  -  CAD::Drawing::IO::Compressed 0.26
CAD::Drawing::IO::Compressed is a Perl module to load and save compressed data. Requisite Plug-in Functions See CAD::Drawing::IO for a description of the plug-in architecture. check_type Returns true if $type is "compressed" or $filename...
39.94 KB  
Libraries  -  IO::Tty 1.07
IO::Tty is a Perl module to low-level allocate a pseudo-Tty, import constants. SYNOPSIS use IO::Tty qw(TIOCNOTTY); ... # use only to import constants, see IO::Pty to create ptys. IO::Tty is used internally by IO::Pty to create a...
21.5 KB  
Libraries  -  Alien Perl module 0.91
Alien Perl module package contains external libraries wrapped up for your viewing pleasure! SYNOPSIS perldoc Alien; Alien is a package that exists just to hold together an idea, the idea of Alien:: packages, so there is no code here, just...
10.24 KB  
Libraries  -  File::NFSLock 1.20
File::NFSLock is a Perl module to do NFS (or not) locking. SYNOPSIS use File::NFSLock qw(uncache); use Fcntl qw(LOCK_EX LOCK_NB); my $file = "somefile"; ### set up a lock - lasts until object looses scope if (my $lock = new File::NFSLock...
18.43 KB  
Libraries  -  Module::Signature 0.55
Module::Signature is a Perl module signature file manipulation. SYNOPSIS As a shell command: % cpansign # verify an existing SIGNATURE, or # make a new one if none exists % cpansign sign # make signature; overwrites existing one %...
68.61 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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  
Libraries  -  wolfSSL 3.12.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...
2.73 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