Yes! You rawk, thank you.close(STDERR); open(STDERR, '>', \my $BUF) or die $!; warn "hey there"; $BUF=~/hey there/ or die;
In reply to Re^2: capture STDERR from within code?
by leocharre
in thread capture STDERR from within code?
by leocharre
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |