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

my $result;
capture_stdout_on($result);

print "OH ";
say "HAI!";

capture_stdout_off;

print "RESULT: $result";


