Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Type Globs

by repson (Chaplain)
on Jan 04, 2001 at 13:06 UTC ( [id://49723]=note: print w/replies, xml ) Need Help??


in reply to Re: Type Globs
in thread Type Globs

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://49723]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-25 06:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found