in reply to Challenge: Capturing stdout from a function call.
Looks like you'll have to settle for an intermediary file (open STDOUT, '>', ...).close STDOUT; # comment out to see the difference, try opening STD +OUT to something else use Perl; my $p = Perl->new( ARGV => [ '-le', 'print(1)for(1..22)'] ); $p->run;
|
|---|