Perl notes Perl Notes

PPM = Perl Package Manager

Use PPM to fetch and install pre-built packages (such as DBI, which isn’t included in the ActiveState ActivePerl distribution).  CPAN requires test & make; PPM installs pre-compiled packages.  From the command line, PPM runs from PPM.bat; start with:

  1. ppm help
  2. install DBI // the Data Base Interface
  3. install DBD-mysql // the Data Base Driver for mysql
  4. query * // lists all installed packages

SheBang

… refers to the first line of a Perl script, starting with:

  1. #!

For example, on Windows the first line in a script looks like:

  1. #1 C:\Perl\bin\perl.exe

This directive defines where Apache is to find the CGI scripts interpreter.

Back Home