I have:
- Ubuntu 10.04
- Perlbrew 0.39
- Perl::Critic 1.117
I successfully reproduced the error in openSUSE 12.1 with the following
steps:
1. I install perlbrew with 'curl -kL http://install.perlbrew.pl | bash'
2. perlbrew install 5.12.3
3. perlbrew switch 5.12.3
4. perlbrew install-cpanm
5. cpanm Perl::Critc
6. cpanm Perl::Critc::Tics
6. create a perl script where one line is long enough to violate the
hard length limit of Perl::Critic::Policy::Tics::ProhibitLongLines
7. perlcritic your_script.pl
The other policies function as expected but whenever a line violates
Perl::Critic::Policy::Tics::ProhibitLongLines I get the following error
message:
Use of uninitialized value $min_width in numeric gt (>) at
/home/birdy/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/String/Format.pm
line 51.
Use of uninitialized value $replength in numeric gt (>) at
/home/birdy/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/String/Format.pm
line 51.
Use of uninitialized value $max_width in numeric gt (>) at
/home/birdy/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/String/Format.pm
line 56.
Use of uninitialized value $replength in numeric gt (>) at
/home/birdy/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/String/Format.pm
line 56.
Use of uninitialized value $replength in subtraction (-) at
/home/birdy/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/String/Format.pm
line 67.
Use of uninitialized value $min_width in subtraction (-) at
/home/birdy/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/String/Format.pm
line 67.
Use of uninitialized value $replacement in concatenation (.) or string
at
/home/birdy/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/String/Format.pm
line 67.