In a recent mailing-list thread about creating a lightweight module, someone suggested putting
#use strict;
in, to be uncommented during development of the module and recommented for release.
I immediately thought of this:
use if $INC{"strict.pm"}, "strict";
This enables a global stricture setting; use strict unqualified at the beginning of your main
program and you automatically get it turned on in all scopes specifying the above line. Then
you just have to use strict in your tests and you get automatic strictures during development
- but not in production if strict hasn't been already loaded.
Unfortunately, this requires loading the if module...I sometimes regret that Ilya's
original use foo if bar syntax wasn't implemented.
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.