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

Re: Type Globs

by Dominus (Parson)
on Jan 04, 2001 at 02:38 UTC ( [id://49690]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: Type Globs
in thread Type Globs

Says autark:
You could try to define your own print function, sub print { ... }

You can't override print.

Replies are listed 'Best First'.
Re: Re: Type Globs
by repson (Chaplain) on Jan 04, 2001 at 08:06 UTC
    I don't see why it has to be called print (this was mentioned as a specific error reporting problem, I believe)...

    sub writeError { print STDERR @_; print FILE @_; # yes I know that should be Mail::Mailer, but I don't know its synta +x open MAIL, '|/usr/sbin/sendmail admin' or die; print MAIL @_; close MAIL; }
    Assuming FILE is already open and is avalible from there.

    This solution also has the advantage of allowing simple and understandable maintainability.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://49690]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.