Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Filehandle Filter

by cadphile (Beadle)
on Nov 23, 2021 at 00:10 UTC ( [id://11139034]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        sub Filter {
          my $fh = shift;
          tie *{ $fh }, __PACKAGE__, @_;
        }
    
  2. or download this
        select STDERR; $|=1;
        select STDOUT; $|=1;
    ...
        ## Call UnFilter to untie the filehandles (don't care)
        Filter \*STDOUT, $LOG_FH, $FILTER_STDOUT;
        Filter \*STDERR, $LOG_FH, $FILTER_STDERR;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-24 10:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found