Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Capturing STDERR using IO::Handle

by Sidhekin (Priest)
on Nov 26, 2007 at 15:48 UTC ( #653008=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Test::Trap qw/ :flow:stderr(systemsafe) /; # or similar
    trap { system 'command', 'with', 'args' };
    my @logmessages = split /\n/, $trap->stderr; # chomped! or season to t
    +aste
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2016-02-11 13:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (370 votes), past polls