No, you shouldn't. can performs a method lookup, not a sub lookup.
As for not working with AUTOLOAD, that would indicate a bug in the class using AUTOLOAD. It should override can to provide a meaningful result.
In reply to Re^2: Function name in a variable, can't recall the concept (introspection with ->can )
by ikegami
in thread Function name in a variable, can't recall the concept
by mpersico
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |