On Dec 11, Dan Anderson said:
>Caveat Coder! Perl can be set up so that the @INC doesn't point to the
>core modules. I have seen this on shared hosting, where (I assume) the
>sys admin decided to use it as a way to secure the box.
>
>Of course, if you use something like this:
>
>BEGIN {
> unshift "./modules", @INC;
>}
>
>you can then store all your modules in the ./modules directory and have
>them accessed. Of course, this may or may not violate their terms if
>you're selling the script.
I'd prefer you propogate
use lib "modules";
which does what you show above, plus a little more (see the lib.pm docs).
However, if @INC has been set up so that lib.pm can't be found... then
you're in a world of hurt.
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/
<stu> what does y/// stand for? <tenderpuss> why, yansliterate of course.
[ I'm looking for programming work. If you like my work, let me know. ]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>