<?xml version="1.0" encoding="windows-1252"?>
<node id="883514" title="Re: Dist::Zilla::Plugin::PkgVersion vs. Perl::Critic and strictures" created="2011-01-21 06:28:29" updated="2011-01-21 06:28:29">
<type id="11">
note</type>
<author id="343950">
emazep</author>
<data>
<field name="doctext">
I had the same problem and I've solved it this way:

&lt;code&gt;
## no critic
package My::Package;
## use critic
use strict;
use warnings;
&lt;/code&gt;

so that [mod://Dist::Zilla::Plugin::PkgVersion] will expand it to:

&lt;code&gt;
## no critic
package My::Package;
BEGIN {
  $My::Package::VERSION = '1.23';
}
## use critic
use strict;
use warnings;
&lt;/code&gt;

and everyone is happy :-)</field>
<field name="root_node">
845839</field>
<field name="parent_node">
845839</field>
</data>
</node>
