### ----------------------------------------------------
### -- IO::Capture::Simple
### -- Licenses: Artistic-2.0
### -- Authors: Filip Sergot, JJ Merelo
### -- File: examples/e3.p6
### ----------------------------------------------------
use IO::Capture::Simple;

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

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

say $in;


