Home Magic Printing Microsoft Perl Schools Unix NYC Programming Security Gardening Palm Pilot MP3 Health Shopping Other Web Publishing Wireless Mac Mgr Mac Links Fight Spam! Click Here! |
http://www.perl.com/CPAN/src/
3. Are you using the following? #!/usr/bin/perl -w
use diagnostics;
use strict;
"-w" turns on all sorts of warnings about probable errors (see the
perldiag manpage), "use diagnostics" causes the "-w" warnings to be
explained in greater detail (with the explanations from the perldiag
manpage), and "use strict" generates compile and run-time errors for
certain unsafe variable, reference and subroutine constructs (see the
strict manpage)
4. Are you checking the return values from the functions built in to
perl? Most of the file and system functions set $! and have return
values that you can test thus: open(PASSWD, " &lbracket /etc/passwd") or
die "error opening /etc/passwd: $!\n";
$! will contain an error message that will give you more information
on where your program is going wrong. The perlfunc man page will give
you more information on the return values from functions.
5. Have you read the Perl FAQ? Many questions on sockets programming,
an important and common problem with Solaris, text manipulation and
the jargon of perl are answered in the FAQ. As well as being posted
regularly to comp.lang.perl.misc, the FAQ is on the web at:
6. Have you read the man pages? Here are some subjects and the man
pages to look in:
7. Have you looked at http://www.perl.com/ ? This is a great
online reference, with documentation, pointers to modules in the
Comprehensive Perl Archive Network (CPAN), articles on the inner
workings of many bits of Perl, and more.
7.5. Have you checked to see if a Perl module satisfies your needs?
Many reusable modules are available for immediate download and use.
8. Have you tried archives of Usenet? http://www.dejanews.com/
maintains an archive of postings to Usenet dating from March, 1995.
Be sure to include "Perl" in your search. 9. The latest version of the "Camel Book" ("Programming Perl"), updated for version 5.003, is available from your bookstore or from http://www.ora.com/ |