Use warnings and replace use vars with our
authorMarius Gavrilescu <marius@ieval.ro>
Fri, 17 Jul 2015 10:56:53 +0000 (13:56 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Fri, 17 Jul 2015 12:31:32 +0000 (15:31 +0300)
lib/Pod/Constants.pm

index 09f3afe329b2a275b02b1a92bbfb4ab7541aed76..3395a9c2652bafb209f56e6b88ba6ea164f0a127 100644 (file)
@@ -5,15 +5,15 @@
 
 package Pod::Constants;
 
-use 5.004;
+use 5.006002;
 use strict;
+use warnings;
 
 use base qw(Pod::Parser Exporter);
 use Data::Dumper;
 use Carp;
 
-use vars qw($VERSION);
-$VERSION = 0.17;
+our $VERSION = 0.17;
 
 # An ugly hack to go from caller() to the relevant parser state
 # variable
@@ -239,7 +239,7 @@ Pod::Constants - Include constants from POD
 
 =head1 SYNOPSIS
 
use vars qw($myvar $VERSION @myarray $html %myhash);
our ($myvar $VERSION @myarray $html %myhash);
 
  use Pod::Constants -trim => 1,
      'Pod Section Name' => \$myvar,
@@ -468,7 +468,7 @@ method seems to break dh-make-perl.
 
  =cut
 
use vars qw($VERSION);
our $VERSION;
  use Pod::Constants -trim => 1,
      'MODULE RELEASE' => sub { ($VERSION) = m/(\d+\.\d+) or die };
 
This page took 0.011411 seconds and 4 git commands to generate.