|
Most of the time the reason why errors occur in files is due to people not changing the file permission as described above. To help you to identify problems you can run the file with a warning favility turned on. This will display warnings and other messages before it tries to execute the program.
perl -w file_name.pl
Otherwise you can run the file with the debugger.... compiles the file before runnig it...which can speed up the running of the file, but explains why you can get compilation errors when you execute a Perl file which consists only of text
perl -d file_name.pl
Dont proceede to the next stage until you get the file working....if you need more help getting it to work you can use these resources:
www.perl.com/CPAN (redirects to
another mirror)
www.perl.org/CPAN
ftp://ftp.funet.fi/pub/languages/perl/CPAN/
www.cs.ruu.nl/pub/PERL/CPAN/
ftp://ftp.cs.colorado.edu/pub/perl/CPAN/ 
|