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 (Cardinal)
on Sep 13, 2003 at 22:35 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://291303]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-25 22:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found