Capture-Tiny-Extended
view release on metacpan or search on metacpan
t/lib/Cases.pm view on Meta::CPAN
return unless $t eq 'unicode';
binmode(STDOUT, join( ":", "", "raw", @orig_layers)) if fileno(STDOUT);
binmode(STDERR, join( ":", "", "raw", @orig_layers)) if fileno(STDERR);
}
#--------------------------------------------------------------------------#
my %texts = (
short => 'Hello World',
multiline => 'First line\nSecond line\n',
( $] lt "5.008" ? () : ( unicode => 'Hi! \x{263a}\n') ),
);
#--------------------------------------------------------------------------#
# fcn($perl_code_string) => execute the perl in current process or subprocess
#--------------------------------------------------------------------------#
my %methods = (
perl => sub { eval $_[0]; $_[0] },
sys => sub { system($^X, '-e', $_[0]); $_[0] },
);
( run in 0.644 second using v1.01-cache-2.11-cpan-b61123c0432 )