One reason is because I don't want to debug a variable-name typo that those defensive practices would have caught in ten seconds... and I'm sure people don't want to have their posts here ignored.
Besides that, I've learned more about Perl by having to take code that barely works and make it pass the strict test.
There's a minimum standard of posting here that we really ought to take into account. People should be able to pare down their code into the smallest snippet that illustrates the program. They need to provide the exact error messages they encounter. They ought to format it nicely. They should list what they've already tried, if applicable. If they're running CGI scripts, they must use Taint mode.
Given all that, I don't think typing an extra 15 characters per script is an unreasonable burden. Take taint mode, for example. I wouldn't hire any CGI programmer who doesn't use -T because it's his "valid personal decision". Sure, it may work now, but when things fall apart in the future, having saved a few minutes writing code will be forgotten.
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.