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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2017-01-16 17:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (151 votes). Check out past polls.