I can't agree with my learned colleagues more, you should
use strict; use CGI; and set the
-w flag.
Another thing to do however, is to switch taint checks on and scrub your data clean (detaint). Your CGI-BIN is a gaping hole in your server's defences against the world, and if you put something in there, especially something that writes to the disk system, you sould make sure that you know what it's writing and where. You can't trust the users not to add something nasty inside a form.
Please read perlsec, to see why -T is a good idea. At best a inocent mistake could mess up your array, at worst they could format your hard disk....
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.