On Wed, Feb 02, 2000 at 05:49:24PM -0500, [EMAIL PROTECTED] wrote:
> actually why doesn't the above work? i would have thought that common
> event methods like cancel would be in the Event package.

They are in Event::Watcher to catch exactly this type of mistake.

> i still don't
> always get the hierarchy in event.pm. i even once tried to figure out how
> you load the code and symbol table and it was all black magic.

It isn't too bad.  Only the Event package has a custom AUTOLOAD
function.  It's purpose is to magically make:

  my $w = Event->watcher_type(...);

Short hand for:

  require Event::watcher_type;
  my $w = Event::watcher_type->new(...);

Hm.  Maybe that should be in the documentation somewhere...

-- 
"Never ascribe to malice that which can be explained by stupidity."
                            via, but not speaking for Deutsche Bank

Reply via email to