Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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?
LanX leaving his cave to enjoy sun! *\o/*

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2017-03-30 15:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (360 votes). Check out past polls.