Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Best Way to Redirect STDERR to a Scalar

by davido (Archbishop)
on Sep 13, 2003 at 22:35 UTC ( #291303=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $variable;
    
    ...
    # Now test to see if $variable actually received the text.
    print "Now for the real test.\n";
    print $variable;
    
  2. or download this
    use Tie::STDERR \$append_to_scalar;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2014-12-18 05:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (42 votes), past polls