in reply to Re: Re: Overriding Mail::Audit's accept()
in thread Overriding Mail::Audit's accept()
Incidentally, has anyone got any idea why Mr. Cozens would choose to make his constructor like this?
I only skimmed it, but it looks Mail::Audit::new works more as a factory (for getting either a Mail::Audit::MailInternet or Mail::Audit::MimeEntity object) then as a constructor. It seems like this would have been something that should be mentioned in the perldocs.
Speaking of the documentation, if your goal is to overide the accept method, then this section of Mail::Audit seems applicable...
new(%options) ... Other options include the accept, reject or pipe keys, which specify subroutine references to override the methods with those names.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Overriding Mail::Audit's accept()
by revdiablo (Prior) on Jul 01, 2003 at 06:35 UTC |