Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 avoiding work at the Monastery: (5)
As of 2014-07-12 10:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (239 votes), past polls