I'm interested in your comment on 'using strict'. I was sold on its use, until I ran a CGI script from the command line, hoping to see a glimmer of a runtime error that would give a clue as to my most recent problem.

My program compiled cleanly (when I used the -c option) but when I ran it from a command line, I got a TON of warning messages (I assume they were warnings, because it didn't stop the program from running) that were essentially due to my environment didn't have a number of environmental variables set that are normally set in a CGI environment.

So that is why I removed the 'using strict', to get away from those warning messages and see messages that were really run time failures, which I've seen happen. Errors that the compiler didn't catch, but they were caught at runtime.

So how do you propse to get around this problem?


In reply to Re^4: help with start_table of CGI.pm by kmullin5016
in thread help with start_table of CGI.pm by kmullin5016

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.