in reply to Re^3: Tao Perl Ching - The Scripture of the Way of Perl
in thread Tao Perl Ching - The Scripture of the Way of Perl
There are good reasons for many of those things. Vars begins with an upper-case V because vars is a Perl reserved word. All the other functions use lower-first casing, so better to make the one exception than change the entire module's syntax.
The prefixed minus is familiar to me from another language (I can't remember which, now) -- it's not an attempt to make them look like shell arguments, but rather a very common style; I suspect the author(s) of CGI.pm were used to using and seeing that style for named parameters. Because of this, when my functions accept named parameters, I use Params::Validate to normalize the keys, allowing but not requiring the prefixed minus.
Anima Legato
.oO all things connect through the motion of the mind
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Tao Perl Ching - The Scripture of the Way of Perl
by Juerd (Abbot) on Jan 20, 2005 at 22:02 UTC |