7stud has asked for the wisdom of the Perl Monks concerning the following question:
package CriticMy; use strict; use warnings; use 5.010; use criticism 'gentle'; use Readonly my $unprintable => 0x15; #***LINE 8***** our $VERSION = 1.00; 1; --output:-- Use of uninitialized value $_ in pattern match (m//) at /Users/7stud/p +erl5/perlbrew/perls/perl-5.16.0/lib/5.16.0/Exporter.pm line 57. Use of uninitialized value $_ in exists at /Users/7stud/perl5/perlbrew +/perls/perl-5.16.0/lib/5.16.0/Exporter.pm line 57. Use of uninitialized value $_ in pattern match (m//) at CriticMy.pm li +ne 8. Use of uninitialized value $sym in hash element at CriticMy.pm line 8. Use of uninitialized value $sym in pattern match (m//) at CriticMy.pm +line 8. Use of uninitialized value $sym in substitution (s///) at CriticMy.pm +line 8. Use of uninitialized value $sym in hash element at CriticMy.pm line 8. Use of uninitialized value $sym in concatenation (.) or string at Crit +icMy.pm line 8. Readonly version 21 required--this is only version 1.03 at /Users/7stu +d/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0/Exporter/Heavy.pm line +120. BEGIN failed--compilation aborted at CriticMy.pm line 8.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl::Critic error "Readonly version 21 required"
by kcott (Archbishop) on Feb 15, 2013 at 06:17 UTC | |
by 7stud (Deacon) on Feb 15, 2013 at 07:16 UTC | |
|
Re: Perl::Critic error "Readonly version 21 required"
by tobyink (Canon) on Feb 15, 2013 at 06:53 UTC | |
by tobyink (Canon) on Feb 15, 2013 at 10:06 UTC | |
by 7stud (Deacon) on Feb 15, 2013 at 17:23 UTC |