[Chicago-talk] ->can and AUTOLOAD

Jonathan Steinert hachi at kuiki.net
Thu Dec 4 09:23:45 CST 2003

Jay Strauss wrote:

> If I use AUTOLOAD in a class, and then do ->can on that class, it comes back
> not found.  I thought AUTOLOAD would catch all and I could do ->can on any
> method and AUTOLOAD would pick it up
> Thanks
> Jay

I don't use AUTOLOAD much, but if that's the case I would just do a 
$foo->can('whatever') || $foo->can('AUTOLOAD') to get around it.

More information about the Chicago-talk mailing list