Also, many modules can be "installed" merely by copying their .pm file to anything on your @INC path. For some you have to do a little more. Like create subdirectories for it. If you see :: in a perl script, think subdirectory. So, LWP::Simple accesses /perl/lib/LWP/Simple.pm
/perl/lib is on my @INC path, so think of LWP::Simple as being the path relative to one of the directories on my @INC path.
However, I would only use this method if the normal automated ways (i.e. PPM) doesn't work on your current platform.
Main Topics
Browse All Topics





by: thoellriPosted on 2003-01-27 at 15:22:44ID: 7825505
Yes, you can install modules from CPAN, if you have a c-compiler (preferably the compliler which was used to build the version of perl you're using) and a "make" utility (probably nmake.exe from Visual Studio).
However, there are sometimes reasons why you don't find a module through PPM, most often because the module is not supported on Win32 or makes use of functionality (alarm() for example) that is simply not yet available in the Win32-perl port.
MLDBM is available through "ppm install MLDBM" from activestate for my perl 5.6.1 version.
Tobias