How To Wiki
Register
Advertisement

a PERL module can be installed directly using the following command

Single Command[]

  • perl -MCPAN -e install HTML::Template

Via CPAN Shell(recommended)[]

You can enter the Perl shell to install the modules you want.

  • perl -MCPAN -e shell
  • to install the module type
  • install module name
  • Example: install HTML::Template
  • installing the module making the shell much more user friendly.
  • make the shell significantly more user friendly type
  • install Bundle::CPAN
  • highly recommended

Windows Activestate PERL[]

  • enter the bin folder containing Perl
  • execute: ppm
  • to install modules type
  • install HTML::Template

Install without root access[]

  • create directories in you home
  • cgi-bin
  • cgi-bin/lib
  • cgi-bin/lib/firstPartOfModuleName
  • Copy the (*.pm) module in the moduleName directory
  • add to your Perl scripts
  • use lib(/full/path/to/cgi-bin/lib);
  • use moduleName
  • Example
  • Add file:
  • /home/mouse/cgi-bin/lib/HTML/Template.pm
  • Add to script
  • use lib(/home/mouse/cgi-bin/lib/);
  • use HTML::Template;
  • From HowTo Wiki, a Wikia wiki.
Advertisement