gitpan / io-nestedcapture Goto Github PK
View Code? Open in Web Editor NEWRead-only release history for IO-NestedCapture
Home Page: http://metacpan.org/release/IO-NestedCapture
Read-only release history for IO-NestedCapture
Home Page: http://metacpan.org/release/IO-NestedCapture
IO::NestedCapture ================= IO::NestedCapture allows for some nice and simple STDIN, STDOUT, STDERR capturing that can be nested. If you just need to capture output without the nesting, you might want to see IO::Capture. What do I mean by nested capture? Here's an example: use IO::NestedCapture ':subroutines'; my $io = IO::String->new; IO::NestedCapture->set_next_out($io); capture_out \&foo; while (<$io>) { print ucfirst($_) } sub foo { capture_out \&bar; my $out = IO::NestedCapture->get_last_out; while (<$out>) { print lc($_) } } sub bar { print "HELLO WORLD!\n"; } # output is: # Hello world! Basically, the output of the first method is captured and converted to lowercase and then the other capture captures it and converts the first character to uppercase. Installation ------------ Typical Module::Build install: perl Build.PL ./Build ./Build test ./Build install Bugs and Such ------------- Feature requests and bugs can be submitted to CPAN RT: http://rt.cpan.org/ Cheers, Sterling
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.