Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: How do I redirect STDERR to a subroutine?

by BUU (Prior)
on Feb 17, 2004 at 21:30 UTC ( [id://329751]=note: print w/replies, xml ) Need Help??


in reply to How do I redirect STDERR to a subroutine?

tie *STDERR,'MyRandomPackageName'; package MyRandomPackageName; sub TIEHANDLE { bless {}; } sub PRINT { CORE::print(@_); } sub PRINTF{ CORE::print(sprintf@_); } #etc

Replies are listed 'Best First'.
Re: Re: How do I redirect STDERR to a subroutine?
by blue_cowdawg (Monsignor) on Feb 18, 2004 at 02:26 UTC

    Errmm... I tried running that and it went into an infinite loop.... I haven't tried a debugger yet, but...


    Peter L. Berghold -- Unix Professional
    Peter at Berghold dot Net
       Dog trainer, dog agility exhibitor, brewer of fine Belgian style ales. Happiness is a warm, tired, contented dog curled up at your side and a good Belgian ale in your chalice.

Log In?
Username:
Password:

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

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

    No recent polls found