perl::critic::policy::modules::requireperlversion(3) [centos man page]
Perl::Critic::Policy::Modules::RequirePerlVersion(3) User Contributed Perl Documentation Perl::Critic::Policy::Modules::RequirePerlVersion(3)NAME
Perl::Critic::Policy::Modules::RequirePerlVersion - Require a "use 5.006;" or similar.
AFFILIATION
This policy is part of Perl::Critic::More, a bleeding edge supplement to Perl::Critic.
DESCRIPTION
As Perl evolves, new desirable features get added. The best ones seem to break backward compatibility, unfortunately. As a favor to
downstream developers, it's good to state explicitly which Perl version will not be able to parse your code.
For example, the "our" keyword was first appeared in a stable Perl in version 5.6.0. Therefore, if your code employs "our", then you
should have a line like this near the very top of your file:
use 5.006;
or
use v5.6.0;
The former is preferred as the latter can trigger v-string compatibility warnings. (If someone could please explain that to me, I'd really
appreciate it!)
Additionally, it's good form to state that minimum version in your Makefile.PL or Build.PL file.
AUTHOR
Chris Dolan <cdolan@cpan.org>
COPYRIGHT
Copyright (c) 2006-2008 Chris Dolan
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license
can be found in the LICENSE file included with this module.
perl v5.16.3 2014-06-10 Perl::Critic::Policy::Modules::RequirePerlVersion(3)
Check Out this Related Man Page
Perl::Critic::Policy::Variables::ProtectPrivateVars(3) User Contributed Perl Documentation Perl::Critic::Policy::Variables::ProtectPrivateVars(3)NAME
Perl::Critic::Policy::Variables::ProtectPrivateVars - Prevent access to private vars in other packages.
AFFILIATION
This Policy is part of the core Perl::Critic distribution.
DESCRIPTION
By convention Perl authors (like authors in many other languages) indicate private methods and variables by inserting a leading underscore
before the identifier. This policy catches attempts to access private variables from outside the package itself.
CONFIGURATION
This Policy is not configurable except for the standard options.
HISTORY
This policy is inspired by a similar test in B::Lint
SEE ALSO
Perl::Critic::Policy::Subroutines::ProtectPrivateSubs
AUTHOR
Chris Dolan <cdolan@cpan.org>
COPYRIGHT
Copyright (c) 2006-2011 Chris Dolan.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license
can be found in the LICENSE file included with this module.
perl v5.16.3 2014-06-09 Perl::Critic::Policy::Variables::ProtectPrivateVars(3)
Hello,
I am looking for faulty X6990A, X7000A, X7009A, X7064A, X7310A CPU Modules.
The background is that I have recently got some non-working X7009A with various errors, I was able to repair some by swapping out CPUs but still have 3 more modules which are defenately "cooked".
I would... (0 Replies)
I am looking for a full Perl course on internet (tutorial) to learn everything about Perl. I already know a bunch of programing languages.
I have started Unix interests this year ever since I installed Ubuntu Linux on my PC AND I also got a job at IBM doing software distributions with... (1 Reply)
hi, i am a really new to Perl. i have a following code that is working well.
"
i know this is really simple, but i cant figure out a way to do this. can someone help me please?:( (1 Reply)
Hi All,
Need your help..
I am writing one script in which I am assigning value to one variable but when i am executing it is showing error "0403-006 Execute permission denied"
below is the line of that script :
INPUT_COUNT=wc $GIF_DIR/input/VID_RIMS.DAT | awk '{print $1}'
and access... (2 Replies)
Well, I found myself trying to fix some Perl code (Ive never done any Perl in my life) and I pinpointed the place where the bug could be. But to be sure I have to know what does a few line of code mean:
$files_lim =~ (/^\d*$/)
$files_lim =~ (/^\d*h$/)
$files_age =~ s/h//
The code where... (2 Replies)
Hi..
I have data file.. and I could able to print using cat and awk
like this
cat filename
awk '{print $1 "\t" $2 "\t" $3}' filenamebut I want to receive input from user like this
echo -n " how many columns you want to display : "
read abcsuppose if I give all, it should display all... (11 Replies)
Hello
I am on my way to improve my wonderful Perl skills, I got an issue which I want to share with you all. I have a Perl module which looks like
package Cocoa;
require Exporter;
@ISA = qw(Exporter);
my $a='';
my $b='';
my $c='';
sub new {
my $this = shift; # Create... (8 Replies)
Ive been trying to move to Perl. It has been a struggle.
My question is, is there a good resource that explains nesting statements.
As an example.
To change
primary
Factory CTS 1.9.0(46) P1
*Slot 1 CTS 1.10.2(42) P1
To
primary *Slot 1 CTS 1.10.2(42) P1
... (5 Replies)
Hi Perl users,
I have another problem with text processing in Perl. I have a file below:
Linux Unix Linux Windows SUN
MACOS SUN SUN HP-AUX
I want the result below:
Unix Windows SUN
MACOS HP-AUX
so the duplicate string will be removed and also the keyword of the string on... (2 Replies)