in reply to Re: Custom Module question
in thread Custom Module question

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.

Perl is the programming world's equivalent of English

Replies are listed 'Best First'.
Re^3: Custom Module question
by davido (Cardinal) on Dec 03, 2014 at 23:17 UTC

    Oh you are so right. I was so focused on the crazy call with an undefined value I missed the 2nd message. Apologies.


    Dave