Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: capture STDERR from within code?

by leocharre (Priest)
on Nov 10, 2009 at 14:45 UTC ( #806230=note: print w/ replies, xml ) Need Help??


in reply to Re: capture STDERR from within code?
in thread capture STDERR from within code?

close(STDERR); open(STDERR, '>', \my $BUF) or die $!; warn "hey there"; $BUF=~/hey there/ or die;
Yes! You rawk, thank you.


Comment on Re^2: capture STDERR from within code?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://806230]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2014-11-23 07:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (129 votes), past polls