http://qs321.pair.com?node_id=142652


in reply to Re: Re: Create a built-in-like sub?
in thread Create a built-in-like sub?

First, there is an error in GLOBAL.pm

package GLOBAL; use base 'Exporter'
is missing ';'
use base 'Exporter';
our @EXPORT = qw(compress); sub compress { print shift; } 1;

Second, add use GLOBAL; to MODULE.pm

package MODULE; use GLOBAL; sub test { compress "test\n"; } 1;



HTH,
Charles K. Clarkson