It doesn't have any special meaning per se, but by convention the arguments passed to a module are normally a list of subroutines that you wish to import into your namespace. Thus if a module wants to allow you to specify other options, it makes things clearer if those arguments don't "look like" subroutine names. So you often see such options starting with characters that are not allowed in subroutine names, such as '-', '!', ':' or '+'.
The minus sign has an added advantage over other characters that due to fairly convoluted Perl parsing rules, the following:
use Foo "-bar";
... can be written as:
use Foo -bar;
... without violating use strict. In fact, you can even write it as:
use Foo-bar;
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
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.