in reply to Overriding Mail::Audit's accept()
It's not you, it's the Mail::Audit constructor. It doesn't do a simple bless $self, $class as you'd expect. I don't have a better solution at the moment, unfortunately, unless you'd like to say:
{ my $accept = \&Mail::Audit::accept; local *Mail::Audit::accept; *Mail::Audit::accept = sub { die "My accept is running\n"; my $self = shift; $self->$accept( @_ ); }; $item->accept(); }
I wouldn't keep that around for long though. :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Overriding Mail::Audit's accept()
by revdiablo (Prior) on Jun 30, 2003 at 03:30 UTC | |
by hossman (Prior) on Jun 30, 2003 at 07:05 UTC | |
by revdiablo (Prior) on Jul 01, 2003 at 06:35 UTC |