Perl 6 implementation of IO capturing module.