Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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

by hardburn (Abbot)
on Dec 10, 2003 at 21:48 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2022-01-18 08:32 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (52 votes). Check out past polls.