Quoth
:
> Hello. My University doesn't have the Perl modules installed that I
> want to use but said that I can install them in my own directory for my
> own use. I can access my directory but when I put the .pm file (like
> NetPacket::TCP)
It is generally better to install Perl modules properly, using the
Makefile.PL/Build.PL than just copy them into the relevant directories.
This way XS modules get built, and any other configuration necessary is
done as well. MakeMaker (Makefile.PL) has a PREFIX option; read perldoc
ExtUtils::MakeMaker. Module::Build (Build.PL) has an install_base
option; read perldoc Module::Build.
> and try to run my .pl file, I still get the can't find
> module error since Perl is still looking in the same place for the
> modules using @INC I assume (I am not a CS major so this is proving to
> be frustrating). I was wondering if I could just save the .pm file as
> a .pl file, put my code that I want to run at the end of the .pm file
> and run it that way.
No.
> If I can't, could someone please tell me how I
> can use these great modules in a private directory?
perldoc lib
Ben
--
Outside of a dog, a book is a man's best friend.
Inside of a dog, it's too dark to read.
Groucho Marx