Assuming FILE is already open and is avalible from there.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; }
This solution also has the advantage of allowing simple and understandable maintainability.
In reply to Re: Re: Type Globs
by repson
in thread Type Globs
by madhatter
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |