Ovid wrote:
Readonly constants are just easier to use and have fewer gotchas.
they have indeed, when you need to access the constants from outside of
the module they are declared in (which is a pretty common case).
cfr. Foo::Bar::CONSTANT_FIELD vs. $Foo::Bar::CONSTANT_FEILD. the latter
- Original Message
From: Aldo Calpini d...@perl.it
Ovid wrote:
Readonly constants are just easier to use and have fewer gotchas.
they have indeed, when you need to access the constants from outside of the
module they are declared in (which is a pretty common case).
It also
On Thu, Feb 19, 2009 at 09:04:35AM +0100, Aldo Calpini wrote:
IMHO, the unconditional sponsoring of Readonly by PBP is just plain wrong.
An awful lot of PBP is Just Plain Wrong if you treat it as hard-and-
fast rules that should be obeyed all the time. Thankfully, the book
makes it clear that
That is primarily due to their special ability to slay powerful beasties. :}
Roger
-Original Message-
From: Aristotle Pagaltzis [mailto:pagalt...@gmx.de]
Sent: Thursday, February 19, 2009 10:13 AM
To: module-authors@perl.org
Subject: Re: ARGH! (was FW: Perl Critic and (honest) hash
Well foo. I see it now.
RTFM is always pretty good advice, eh? :}
Roger
-Original Message-
From: Roger Hall [mailto:raha...@ualr.edu]
Sent: Wednesday, February 18, 2009 10:05 AM
To: module-authors@perl.org
Subject: Perl Critic and (honest) hash references
All,
I'm a
Well foo. I see it now.
RTFM is always pretty good advice, eh? :}
Roger
-Original Message-
From: Roger Hall [mailto:raha...@ualr.edu]
Sent: Wednesday, February 18, 2009 10:05 AM
To: module-authors@perl.org
Subject: Perl Critic and (honest) hash references
All,
I'm a
: Re: ARGH! (was FW: Perl Critic and (honest) hash references)
What was the solution?
On Wed, Feb 18, 2009 at 8:53 AM, Roger Hall raha...@ualr.edu wrote:
RTFM is always pretty good advice, eh? :}
-Original Message-
From: Roger Hall [mailto:raha...@ualr.edu]
Sent: Wednesday, February 18
: ARGH! (was FW: Perl Critic and (honest) hash references)
What was the solution?
On Wed, Feb 18, 2009 at 8:53 AM, Roger Hall raha...@ualr.edu wrote:
RTFM is always pretty good advice, eh? :}
-Original Message-
From: Roger Hall [mailto:raha...@ualr.edu]
Sent: Wednesday, February 18, 2009
: Wednesday, February 18, 2009 11:11 AM
To: raha...@ualr.edu
Subject: Re: ARGH! (was FW: Perl Critic and (honest) hash references)
What was the solution?
On Wed, Feb 18, 2009 at 8:53 AM, Roger Hall raha...@ualr.edu wrote:
RTFM is always pretty good advice, eh? :}
-Original Message-
From: Roger
Message-
From: Bill Ward [mailto:b...@wards.net]
Sent: Wednesday, February 18, 2009 11:11 AM
To: raha...@ualr.edu
Subject: Re: ARGH! (was FW: Perl Critic and (honest) hash references)
What was the solution?
On Wed, Feb 18, 2009 at 8:53 AM, Roger Hall raha...@ualr.edu wrote:
RTFM is always
Honestly I just left the default perlcritic test script in my package as
generated by Module::Starter. This was the first time I had done so, and I
really had no idea about Perl::Critic until last night when my module
failed
smoke testing after upload to CPAN. From the test script I am
?)
Roger
-Original Message-
From: Chris Dolan [mailto:ch...@chrisdolan.net]
Sent: Wednesday, February 18, 2009 2:44 PM
To: raha...@ualr.edu
Cc: 'Jonas Brømsø Nielsen'; module-authors@perl.org
Subject: RE: ARGH! (was FW: Perl Critic and (honest) hash references)
Honestly I just left
be
avoided.
... is prominently displayed in the module.
Thanks!
Roger
-Original Message-
From: Bill Ward [mailto:b...@wards.net]
Sent: Wednesday, February 18, 2009 11:11 AM
To: raha...@ualr.edu
Subject: Re: ARGH! (was FW: Perl Critic and (honest) hash references)
What
On Wed, Feb 18, 2009 at 12:22 PM, Jonas Brømsø Nielsen jona...@gmail.comwrote:
Hi Roger,
How do you perform your perlcritic runs?
I can recommend the verbosity setting 8
perlcritic --verbose 8
This gives you quite friendly policy identifiers
From: Bill Ward b...@wards.net
This gives you quite friendly policy identifiers
[ValuesAndExpressions::ProhibitConstantPragma] Pragma constant used
at line 22, column 1. (Severity: 4)
What's wrong with 'use constant'?
Well, nothing's wrong with it. It does, however, get clumsy in
On Feb 18, 2009, at 9:08 PM, Bill Ward wrote:
Still, that's bogus for ordinary hashes... it should only care
about that for objects. Though I wonder how it could possibly know
the difference.
Can we define an object as a blessed hash reference? And leave
unblessed hashes available as
On Wed, 18 Feb 2009 22:03 +, Ezra Cooper e...@ezrakilty.net
wrote:
On Feb 18, 2009, at 9:08 PM, Bill Ward wrote:
Still, that's bogus for ordinary hashes... it should only care
about that for objects. Though I wonder how it could possibly know
the difference.
Only by executing
On Wed, Feb 18, 2009 at 3:35 PM, Curtis Jewell
perl.module-auth...@csjewell.fastmail.us wrote:
On Wed, 18 Feb 2009 22:03 +, Ezra Cooper e...@ezrakilty.net
wrote:
On Feb 18, 2009, at 9:08 PM, Bill Ward wrote:
Still, that's bogus for ordinary hashes... it should only care
about
This was caused by the tester having Perl::Critic::Nits installed, which is not
part of core Perl::Critic.
Perl::Critic tests should NOT be enabled by default for any CPAN distribution.
Do with your P::C test whatever you do with the rest of your author tests to
prevent them running by
19 matches
Mail list logo