Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Re: Open pipe to a function?

by hardburn (Abbot)
on Dec 10, 2003 at 21:48 UTC ( [id://313892]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Open pipe to a function?
in thread Open pipe to a function?

You could probably do some tricks with IO::Multiplex. Just save the orginal filehandle like this:

my $old_stderr = *STDERR;

And then reopen STDERR with IO::Multiplex with $old_stderr and a filehandle to the log file.

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

: () { :|:& };:

Note: All code is untested, unless otherwise stated

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-03-29 06:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found