$ cat Foo.pm package Foo; use strict; use warnings; use Exporter; our @EXPORT = qw( this_method that_method ); our %EXPORT_TAGS = ( all => [qw( this_method that_method )] ); sub this_method_that_method { "Hello World" } 1; $ cat a.pl use strict; use warnings; use Foo; print this_method_that_method(), "\n"; $ perl a.pl Undefined subroutine &main::this_method_that_method called at a.pl line 6.