##
package M;
require Exporter;
@ISA = (Exporter);
@EXPORT = qw(hello);
use warnings;
use strict;
sub hello {
print "Hello @_!\n";
}
##
##
package X;
require Exporter;
@ISA = (Exporter);
@EXPORT = qw(bye);
use warnings;
use strict;
sub bye {
M::hello("again"); # if exists M:hello();
print "That's all, folks!\n";
}