Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^5: Challenge: Capturing stdout from a function call.

by gmpassos (Priest)
on Oct 24, 2004 at 07:22 UTC ( [id://401978]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Challenge: Capturing stdout from a function call.
in thread Challenge: Capturing stdout from a function call.

Just use tie inside the code that will be evaluated and return $catcher. Maybe you should use eval() and not run() to get this working.

Can't test Perl.pm here since it doens't compile for Win32.

Graciliano M. P.
"Creativity is the expression of liberty".

  • Comment on Re^5: Challenge: Capturing stdout from a function call.

Replies are listed 'Best First'.
Re^6: Challenge: Capturing stdout from a function call.
by BUU (Prior) on Oct 24, 2004 at 09:11 UTC
    It compiles fine on win32 for me. And I *have* to use run, not eval, for performance reasons, eval would make the entire excercise pointless.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2024-04-19 10:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found