-w is there for a reason... to generate warnings about possible problems.

If you don't care about the warnings, then remove it.

If you do care about the warnings, then fix the script.

Personally, I "use warnings;" and "use diagnostics;" during development. I'm of the opinion that once the scripts are completed, these will produce no output, so there's no harm in leaving them in place (in case something occurs that I haven't considered). Then, I'll get my warnings and diagnostics, and should be able to pick up the error faster. In once instance, I couldn't figure out how to avoid the warning before putting the script in production, so I commented out use warnings; (which I later went back and fixed).

If you have control over the apache config you should be able to alter the logging... but I'd guess you're on a shared hosting service of some sort, so that's probably not an option.

Malach
So, this baby seal walks into a club.....


In reply to Re: How can I Disable script.error_log ? by Malach
in thread How can I Disable script.error_log ? by nickcave25

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.