In fact the missing package name related error is shown by the OP:
Undefined subroutine &main::printname called at testmodule.pl line 8.
in the last line of the error output shown.
As a general thing I prefer to use an explicit package instead of Exporter to avoid name clashes and make the province clear.
In reply to Re^2: Custom Module question
by GrandFather
in thread Custom Module question
by imfaus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |