in reply to Re^2: On being 'critical'
in thread On being 'critical'
When the boss asked to be compliant with Perl::Critic, s?he was probably (implicitly) asking to follow the lines in PBP, for all the reasons explained in PBP.
Well, even though I once said I expected to never purchase PBP, it seems that I have indirectly done so as I have access to it via my Safari library subscription... So, I took a look at what TheDamian had to say on the subject.
And it really doesn't seem that it applies very well here.
The issue TheDamian raises is essentially that of global variables. From the PBP 10.1:
If that symbol has already been used as a filehandle anywhere else in the same package, executing this open statement will close that previous filehandle and replace it with the newly opened one.But the OP had already fully qualified the package and the handle was named "THELOG" rather than something innocuous like "FILE" or "OUT".
In a private message to bart the other day, I referred to Perl::Critic as a "cargo cult compliance module".
Applying a practice in every situation simply because it is widely accepted as a best practice is not itself a best practice.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: On being 'critical'
by jthalhammer (Friar) on Jan 01, 2007 at 06:45 UTC | |
|
Re^4: On being 'critical'
by polettix (Vicar) on Dec 16, 2006 at 16:38 UTC | |
by sauoq (Abbot) on Dec 19, 2006 at 19:00 UTC | |
by polettix (Vicar) on Dec 20, 2006 at 00:29 UTC | |
by sauoq (Abbot) on Dec 20, 2006 at 21:14 UTC | |
by polettix (Vicar) on Dec 21, 2006 at 00:42 UTC | |
| |
|
Re^4: On being 'critical'
by herby1620 (Monk) on Dec 15, 2006 at 21:50 UTC |