From: Rafael Garcia-Suarez Date: Thu, 13 Jul 2006 08:04:44 +0000 (+0000) Subject: Nits to the perlintro safety net (by Gabor Szabo and Merijn) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=64446524dbda53cb526fa2caf0e389033c91f314;p=p5sagit%2Fp5-mst-13.2.git Nits to the perlintro safety net (by Gabor Szabo and Merijn) p4raw-id: //depot/perl@28561 --- diff --git a/pod/perlintro.pod b/pod/perlintro.pod index da9c2af..04e1568 100644 --- a/pod/perlintro.pod +++ b/pod/perlintro.pod @@ -59,17 +59,20 @@ Windows and Mac OS, read L. =head2 Safety net -Perl by default is very forgiving. In order to make it more roboust +Perl by default is very forgiving. In order to make it more robust it is recommened to start every program with the following lines: #!/usr/bin/perl use strict; use warnings; -The C line imposes some restrictions that will mainly stop -you from introducing bugs in your code. The C is more or -less equivalent to the command line switch B<-w> (see L). This will -catch various problems in your code and give warnings. +The two additional lines request from perl to catch various common +problems in your code. They check different things so you need both. A +potential problem caught by C will cause your code to stop +immediately when it is encountered, while C will merely +give a warning (like the command-line switch B<-w>) and let your code run. +To read more about them check their respective manual pages at L +and L. =head2 Basic syntax overview