Update: Nevermind. I forgot the @ISA's. What was I thinking. :(
(Removed code trying to use $self->can('My::Foo::Bar::init'), which doesn't help.)
Of course, I tend to agree that it's likely bad design. *shrug*
Update 2: I guess you could do print "Bar can\n" if do { local @My::Foo::Bar::ISA; $self->can('init') }; but, man, that seems ugly.
bbfu
Black flowers blossom
Fearless on my breath
In reply to Re: inheritance and can
by bbfu
in thread inheritance and can
by glwtta
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |