- or download this
# in FooInterface.pm
package FooInterface;
...
use Class::Trait 'base';
our @REQUIRES = qw(foo bar baz);
- or download this
package Foo;
...
sub foo {}
sub bar {}
# missing &baz
- or download this
stevan% perl test.pl
Requirement (baz) for FooInterface not in Foo at test.pl line 0
INIT failed--call queue aborted.