Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: lib pragma and module installationby gnat (Beadle) |
on Sep 02, 2000 at 04:31 UTC ( [id://30837]=note: print w/replies, xml ) | Need Help?? |
PREFIX is when you're built your own complete installation
of Perl and installed it there. LIB is probably what
the questioner wants. You have the steps incomplete, though: I'm keeping the source code to the DBI module in one place (~/src) and the installed version in another (~/myperl). Always a good idea. Then put this at the top of your program that uses the DBI module:
and it should load the DBI library from that directory. If you have different versions of Perl all over the place, you might have to say: To specify which version of Perl the module is being built for. This would be the same version of Perl that you put at the top of your programs: #!/pkg/perl5plus/bin/perl -wHope this helps you! Nat
In Section
Seekers of Perl Wisdom
|
|