in reply to An Interesting Gotcha With use/require
Perl won't load a module if it's already in %INC, but Perl doesn't see an entry for 'File/BaseName.pm', only for 'File/Basename.pm'.
For an interesting artifact of this anomoly, try running this code:
and see what happens. See if you can figure out why.use Strict; $foo = 10;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: An Interesting Gotcha With use/require
by fireartist (Chaplain) on Feb 09, 2005 at 16:55 UTC | |
by chromatic (Archbishop) on Feb 09, 2005 at 18:16 UTC | |
by fireartist (Chaplain) on Feb 10, 2005 at 10:15 UTC | |
by bart (Canon) on Feb 10, 2005 at 14:15 UTC |