Help for this page

Select Code to Download


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