I think two very good (Perl) examples of this would be the usage of
strict and the usage of symbolic references.
I think most people would agree that you should almost always use strict;, and you should almost never use symbolic references.
Many people would also argue that there are times when breaking those two rules may be appropriate. However, the general consensus is usually that you should never use a symbolic reference unless you can first explain why you shouldn't do it. And similarly with strict - if you can first explain why it is so important, then you probably know when it is safe not to use it.
So, I agree completely with Herkum. Learn the rules first, and understand them. And then go ahead and break them :)
Cheers,
Darren
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.