Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Dist::Zilla::Plugin::PkgVersion vs. Perl::Critic and strictures

by Herkum (Parson)
on Jun 22, 2010 at 14:42 UTC ( #845902=note: print w/ replies, xml ) Need Help??


in reply to Dist::Zilla::Plugin::PkgVersion vs. Perl::Critic and strictures

If you are going to follow PBP then you should have only one package declaration per file. If you have one package per file, you really don't have a reason to declare strict and warnings outside of a package declaration.

I guess the real question is how much are you willing to follow PBP, not only for your benefit but others as well. Remember, just because you understand your implementation of the PBP, does not mean the next person will.


Comment on Re: Dist::Zilla::Plugin::PkgVersion vs. Perl::Critic and strictures
Re^2: Dist::Zilla::Plugin::PkgVersion vs. Perl::Critic and strictures
by FalseVinylShrub (Chaplain) on Jun 22, 2010 at 16:07 UTC

    Hi

    Does PBP recommend putting pragmatism before packaging (or vice-versa)? It's a long time since I read it, and I don't have a copy available at the moment.

    I did install Module::Starter::PBP and the module has the form:

    package Foo; use warnings; use strict;

    But is there any disadvantage to doing things the other way round? I can't think of one, so I will stick with rjbs's suggestion unless someone can point one out.

    FalseVinylShrub

    Disclaimer: Please review and test code, and use at your own risk... If I answer a question, I would like to hear if and how you solved your problem.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://845902]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (14)
As of 2014-07-23 17:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (148 votes), past polls