Skip to content

Commit 87425c7

Browse files
author
John Peacock
committed
Merge branch 'master' into release/0.9922
2 parents 0607f9c + f871aa1 commit 87425c7

File tree

8 files changed

+23
-26
lines changed

8 files changed

+23
-26
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*.pm.tdy
88
*.bs
99
*~
10+
*orig
1011

1112
# Devel::Cover
1213
cover_db/

Makefile.PL

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ to support an earlier Perl release.
1616
EOL
1717
}
1818

19-
use vars qw ($no_xs $force_xs);
19+
my ($no_xs, $force_xs);
20+
2021
unlink 'pm_to_blib'; # belts and braces
2122

2223
if ($ENV{PERL_ONLY}) {

lib/version.pm

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ if ($] >= 5.015) {
88
warnings::register_categories(qw/version/);
99
}
1010

11-
use vars qw(@ISA $VERSION $CLASS $STRICT $LAX *declare *qv);
12-
13-
$VERSION = 0.9922;
14-
$CLASS = 'version';
11+
our $VERSION = 0.9922;
12+
our $CLASS = 'version';
13+
our (@ISA, $STRICT, $LAX);
1514

1615
# !!!!Delete this next block completely when adding to Perl core!!!!
1716
{

lib/version/regex.pm

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@ package version::regex;
22

33
use strict;
44

5-
use vars qw(
6-
$VERSION $CLASS $STRICT $LAX
7-
$STRICT_DECIMAL_VERSION $STRICT_DOTTED_DECIMAL_VERSION
8-
$LAX_DECIMAL_VERSION $LAX_DOTTED_DECIMAL_VERSION
9-
);
10-
11-
$VERSION = 0.9922;
5+
our $VERSION = 0.9922;
126

137
#--------------------------------------------------------------------------#
148
# Version regexp components
@@ -61,19 +55,19 @@ my $LAX_ALPHA_PART = qr/_[0-9]+/;
6155

6256
# Strict decimal version number.
6357

64-
$STRICT_DECIMAL_VERSION =
58+
our $STRICT_DECIMAL_VERSION =
6559
qr/ $STRICT_INTEGER_PART $FRACTION_PART? /x;
6660

6761
# Strict dotted-decimal version number. Must have both leading "v" and
6862
# at least three parts, to avoid confusion with decimal syntax.
6963

70-
$STRICT_DOTTED_DECIMAL_VERSION =
64+
our $STRICT_DOTTED_DECIMAL_VERSION =
7165
qr/ v $STRICT_INTEGER_PART $STRICT_DOTTED_DECIMAL_PART{2,} /x;
7266

7367
# Complete strict version number syntax -- should generally be used
7468
# anchored: qr/ \A $STRICT \z /x
7569

76-
$STRICT =
70+
our $STRICT =
7771
qr/ $STRICT_DECIMAL_VERSION | $STRICT_DOTTED_DECIMAL_VERSION /x;
7872

7973
#--------------------------------------------------------------------------#
@@ -84,7 +78,7 @@ $STRICT =
8478
# allowing an alpha suffix or allowing a leading or trailing
8579
# decimal-point
8680

87-
$LAX_DECIMAL_VERSION =
81+
our $LAX_DECIMAL_VERSION =
8882
qr/ $LAX_INTEGER_PART (?: $FRACTION_PART | \. )? $LAX_ALPHA_PART?
8983
|
9084
$FRACTION_PART $LAX_ALPHA_PART?
@@ -96,7 +90,7 @@ $LAX_DECIMAL_VERSION =
9690
# enough, without the leading "v", Perl takes .1.2 to mean v0.1.2,
9791
# so when there is no "v", the leading part is optional
9892

99-
$LAX_DOTTED_DECIMAL_VERSION =
93+
our $LAX_DOTTED_DECIMAL_VERSION =
10094
qr/
10195
v $LAX_INTEGER_PART (?: $LAX_DOTTED_DECIMAL_PART+ $LAX_ALPHA_PART? )?
10296
|
@@ -109,7 +103,7 @@ $LAX_DOTTED_DECIMAL_VERSION =
109103
# The string 'undef' is a special case to make for easier handling
110104
# of return values from ExtUtils::MM->parse_version
111105

112-
$LAX =
106+
our $LAX =
113107
qr/ undef | $LAX_DOTTED_DECIMAL_VERSION | $LAX_DECIMAL_VERSION /x;
114108

115109
#--------------------------------------------------------------------------#

t/02derived.t

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ print $fh <<"EOF";
5151
# This is an empty subclass
5252
package $package;
5353
use parent 'version';
54-
use vars '\$VERSION';
55-
\$VERSION=0.001;
54+
our \$VERSION = 0.001;
5655
EOF
5756
close $fh;
5857

vperl/vpp.pm

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,11 @@ use strict;
122122
use warnings::register;
123123

124124
use Config;
125-
use vars qw($VERSION $CLASS @ISA $LAX $STRICT $WARN_CATEGORY);
126-
$VERSION = 0.9922;
127-
$CLASS = 'version::vpp';
125+
126+
our $VERSION = 0.9922;
127+
our $CLASS = 'version::vpp';
128+
our ($LAX, $STRICT, $WARN_CATEGORY);
129+
128130
if ($] > 5.015) {
129131
warnings::register_categories(qw/version/);
130132
$WARN_CATEGORY = 'version';

vutil/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vxs.c

vutil/lib/version/vxs.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ package version::vxs;
44
use v5.10;
55
use strict;
66

7-
use vars qw(@ISA $VERSION $CLASS );
8-
$VERSION = 0.9922;
9-
$CLASS = 'version::vxs';
7+
our $VERSION = 0.9922;
8+
our $CLASS = 'version::vxs';
9+
our @ISA;
1010

1111
eval {
1212
require XSLoader;

0 commit comments

Comments
 (0)