PerlHoo, Part I | 2 | WebReference

PerlHoo, Part I | 2

PerlHoo::Requirements

Perl

Before we begin, make sure you have a recent version of Perl installed. You should have Perl 5.004 or later. You can determine the version you're using by typing: perl -v at the command line. You can download the latest version of Perl for your operating system at http://www.perl.com/CPAN/ports/index.html or any CPAN mirror.

Modules

You will need to install the Text::CSV module from the CPAN archive if it's not already on your system. To automate installation from a win32 system, type: ppm install Text-CSV_XS or from a *nix box type: perl -MCPAN -e shell to open a CPAN shell. Then type: install Text::CSV to install the module.

Win32 Modifications

There are 3 minor modifications you will need to make if you are using a win32 system:
  1. Line 15 - Change use Text::CSV; to use Text::CSV_XS;
  2. Line 100 - Change my $csv = Text::CSV->new(); to my $csv = Text::CSV_XS->new();
  3. Line 1 - Remove the T in #!/usr/bin/perl -wT
Also, make sure to use / instead of \ in the file path when you set the $rootdir variable at Line 20. Ex. c:/inetpub/wwwroot/perlhoo

http://www.internet.com

Produced by Jonathan Eisenzopf and
Created: Mar. 18, 1999
Revised: Mar. 22, 1999

URL: http://www.webreference.com/perl/tutorial/2/