Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Use, Exporter, I'm Dizzy.

by ferreira (Chaplain)
on Feb 07, 2007 at 17:16 UTC ( #598822=note: print w/replies, xml ) Need Help??

in reply to Use, Exporter, I'm Dizzy.

As a wild guess, I think your sin was to use a common name like test. If I look into my environment for a Perl module named test, I got:

$ which_pm test test 1.25 /usr/local/lib/perl5/5.8.8/

To tell the truth, it is not exactly test, but the Test module. But this is Cygwin running over a case-insensitive Windows file system, and the Perl interpreter is satisfied with this answer here. (I think the same will happen with other Perls running over Windows OSes.)

If I say use test and no "" is there to be loaded, the one inside the core will make the loading succeed, but this is not what I intented, right? When you told explicitly to include "." in the @INC, your module has been found. So, a good advice is to not name your modules so that they trump over core modules (and take into account the fact that many filesystems out there are case insensitive).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://598822]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2019-10-15 11:52 GMT
Find Nodes?
    Voting Booth?