in reply to Re: Re: can't find my module?
in thread can't find my module?
But that's not what the original code does. It does the equivalent of:require base;
which is different. The former goes out looking for a file called 'base.pm', while the latter goes out looking for a file called 'base'.require "base";
$ perl -wle 'require "base"' Can't locate base in @INC (@INC contains: /home/abigail/Perl /opt/ +perl/lib/5.8.2/i686-linux-64int-ld /opt/perl/lib/5.8.2 /opt/perl/lib/ +site_perl/5.8.2/i686-linux-64int-ld /opt/perl/lib/site_perl/5.8.2 /op +t/perl/lib/site_perl/5.8.1/i686-linux-64int-ld /opt/perl/lib/site_per +l/5.8.1 /opt/perl/lib/site_perl/5.8.0 /opt/perl/lib/site_perl .) at - +e line 1. $ perl -wle 'require "base.pm"' $
This is documented in perldoc -f require.
Abigail
|
|---|