Funny(Horrid) thing to share regarding the lack of -w and strict...
I've been running a dozen linked perl scripts for
several websites for 2 years now.
Very sloppy, but working code with
global dynamic variables, lack of 'my',
and a few 'locals' where they should not be.
I turned -w on...
my apache error log generated 14,267 warnings.
This is the total number of warnings issued for
1 single request to one cgi.
The main cgi only had 5041 lines of code,
93 subroutines,
and 2 to 3 requires.
jtrue
P.S. running strict was an impossibility.
Apache said "unsafe" at line four and sacked the cgi.
Guess what i'll be doing for the next couple of days.
(See i don't mind showing my butt cheeks).
In two weeks i'll be stronger.
thanks for your help
demerphq
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.