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;
An electronic device
Being the designated driver
Spending time with a celebrity
I never won anything
I never play the lottery
I haven't checked my spam folder recently
Results (366 votes). Check out past polls.