http://www.perlmonks.org?node_id=845902


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

Replies are listed 'Best First'.
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.