Help for this page

Select Code to Download


  1. or download this
    use IPC::Run 'run';
    my ($stdout, $stderr);
    run [ qw/perl -e/, $code ], '<', \$args, '>>', \$stdout, '2>>', \$stde
    +rr;
    
  2. or download this
    $ perl
    my $code = q[use feature 'say'; say for 1..10; warn 'zzz'; $z = <STDIN
    +>; $z=~y/a-z/A-Z/; say $z];
    my $args = q[this is STDIN, why not?];
    ...
    
    STDERR: zzz at -e line 1.