Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] Perl CGI help

Expand Messages
  • merlyn@stonehenge.com
    ... Shawn use strict; Shawn use warnings; But remove use warnings once you deploy your script. warnings are meant for programmers, so they should be used
    Message 1 of 14 , Dec 29, 2005
    • 0 Attachment
      >>>>> "Shawn" == Shawn Corey <shawn.corey@...> writes:

      Shawn> use strict;
      Shawn> use warnings;

      But remove "use warnings" once you deploy your script. warnings are
      meant for programmers, so they should be used only while programmers
      are looking at the script. Also, warnings *increase* over time, and a
      script that worked fine before might get warnings later when the Perl
      version is upgraded. For example, this was formerly OK:

      @punctuation = qw(. , ; ! :);

      but now triggers a warning (as of 5.005 I think it was), even though
      it's a perfectly fine piece of code, and did what the programmer wanted
      it to do.

      --
      Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
      <merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
      Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
      See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
    Your message has been successfully submitted and would be delivered to recipients shortly.