Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: redirecting function output

by miyagawa (Chaplain)
on Dec 16, 2001 at 18:28 UTC ( [id://132344]=note: print w/replies, xml ) Need Help??


in reply to redirecting function output

use IO::Scalar.

use IO::Scalar; tie *STDOUT, 'IO::Scalar', \my $out; function_which_prints_to_stdout(); untie *STDOUT; # the output is stored in $out

--
Tatsuhiko Miyagawa
miyagawa@cpan.org

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2024-04-25 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found