- or download this
# Foo
package Foo ;
use strict ;
...
print "Good morning!\n" ;
}
1 ;
- or download this
# Bar
package Bar ;
...
use warnings ;
use base qw( Foo ) ;
1 ;
- or download this
# main
use Bar qw ( saySomethingElse ) ;
# use Foo qw ( saySomethingElse ) ;
saySomethingElse() ;