An appropriate name for this would be UNIVERSAL::implements, so you'd be able to query classes for some specific behaviour...
With Class::Trait you'd do:
if ( eval { Class->does( 'interface' ) } ) { # do stuff }
In reply to Re^2: Interfaces for the masses!
by adrianh
in thread Interfaces for the masses!
by rvosa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |