[tpm] Perl modules

arocker at vex.net arocker at vex.net
Thu Jan 14 16:21:49 PST 2010


I defined a set of subroutines in a module.

They worked perfectly well when the module was in the same directory as
the caller.

Then I moved the module to a directory on the @INC array, so it would
become generally available, and now it's broken. Specifically, although
the program compiles, when running it dies with an "Undefined subroutine
&main::whatever" message.

What have I done wrong?




More information about the toronto-pm mailing list