|
You can always find out if a module is installed by doing this at the command line -
perl -e "use Tie::IxHash"
perl -e "use CGI"
If nothing is output, then the module is available.
Tie::IxHash is the best way to do what you want. It isn't installed on SEVEN. You could always install it yourself. Instead of - perl Makefile.PL, you would do a perl Makefile.PL PREFIX=/some/directory, and then just add a uselib '/some/directory'; to your code.
Actually, for Tie::IxHash, you don't even really have to do the -
perl Makefile.PL
make
make install
Just download it, tar xvfpz it, go into the lib directory and do cp -pr Tie to what ever directory you want to keep modules in. Then just add a use lib to your script.
While on the subject of perl modules, does anyone know a way to get around the use lib in a cgi script? Is there a way to set the env var PERL5LIB so that it will be used by a cgi script?
[This message has been edited by mike_w (edited 06-18-00@9:30 pm)]
|