I'm bound to get flamed for this, but I get frustrated by folks who want to "help" by simply responding with use strict!, without bothering to explain why this is relevant . I'm under the impression that a number of Monks have been brainwashed into using it without really understanding what it does in particular situations (refs/vars/subs). Dominus wrote a rather good column, Use Strict warnings and diagnostics or die that helps to clear up the fog on this topic.

Rather, I suggest you make sure to utilize the CGI::Carp module when developing any perl CGI. However, I also suggest that you only use fatalsToBrowser (in its default form) during development and testing... if you must leave it in there, please consider customizing the errors. Leaving the vanilla responses in there can provide more information to guests than you want to let loose.
use CGI::Carp qw(fatalsToBrowser);
When this routine is imported via use, fatal errors, such as those produced by die and confess, send error messages to the browser as well as the error log. A simple HTTP response is created with the error message, followed by a request to send mail to the web administrator.**

-fp

** Perl In a Nutshell, Chapter 8, O'Reilly Publishers

Update: Note about fatalsToBrowser customization.

In reply to Re: Re: Re: Re: problem with variable by fuzzyping
in thread problem with variable by cal

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.