Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

Commit

Permalink
&capture_stdin, &capture_stdin_on
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Sergot committed Apr 20, 2012
1 parent 667269f commit 585e903
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 0 additions & 3 deletions README
@@ -1,4 +1 @@
Perl 6 implementation of IO capturing module.

TODO
- $*IN capturing
9 changes: 9 additions & 0 deletions examples/e3.p6
@@ -0,0 +1,9 @@
use IO::Capture::Simple;

my $in = capture_stdin { $*IN.get(); prompt "input> " } ;

capture_stdin_on($in);
prompt "input2 = ";
capture_stdin_off;

say $in;

0 comments on commit 585e903

Please sign in to comment.