in reply to Re: capture STDERR from within code?in thread capture STDERR from within code?
open(STDERR, '>', \my $BUF) or die $!;
warn "hey there";
$BUF=~/hey there/ or die;
Electric eels were invented at the same time as electricity
Before electricity was invented, electric eels had to stun with gas
Results (324 votes). Check out past polls.