in reply to Exporter is driving me mad
which will show you the text of what it is picking up as Test. If that doesn't look familiar, you picked up the wrong module.perldoc -m Test
Next on the list you can try:
which will tell you where you picked up that module from. And finally if you really want it to take your module you can use lib. But I don't recommend doing that, if you don't have good reason, just stay away from the names of core modules.perl -e 'use Test; print $INC{"Test.pm"};'
UPDATE
Oops, Converter pointed out that $INC{Test} is not what you want. It is $INC{"Test.pm"}. You need to convert from a fully qualified package name, that means turn :: into / and add .pm at the end. My bad.
|
|---|