- or download this
package MyModule;
use Exporter();
...
sub frobnicate { print "frobnicated!\n"; }
sub munge { print "munged!\n"; }
- or download this
use MyModule qw(frobnicate munge);
frobnicate;
munge;
- or download this
frobnicated!
munged!
- or download this
BEGIN {
require MyModule;
...
}
frobnicate;
munge;
- or download this
require MyModule;
MyModule->import( qw(frobnicate munge) );
frobnicate;
munge;