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;
Yes, I watch meteor showers
No, I do not watch meteor showers
My meteors prefer to bathe
Results (182 votes). Check out past polls.