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 https://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:- Line 15 - Change
use Text::CSV;
touse Text::CSV_XS;
- Line 100 - Change
my $csv = Text::CSV->new();
tomy $csv = Text::CSV_XS->new();
- Line 1 - Remove the T in
#!/usr/bin/perl -wT
$rootdir
variable at Line 20. Ex. c:/inetpub/wwwroot/perlhoo
Produced by Jonathan
Eisenzopf and
Created: Mar. 18, 1999
Revised: Mar. 22, 1999
URL: https://www.webreference.com/perl/tutorial/2/