File tree Expand file tree Collapse file tree 6 files changed +29
-6
lines changed Expand file tree Collapse file tree 6 files changed +29
-6
lines changed Original file line number Diff line number Diff line change 45
45
"base" : " 0" ,
46
46
"perl" : " 5.006002" ,
47
47
"strict" : " 0" ,
48
- "vars" : " 0" ,
49
48
"warnings" : " 0"
50
49
},
51
50
"suggests" : {
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ my %WriteMakefileArgs = (
24
24
" URI" => 0,
25
25
" base" => 0,
26
26
" strict" => 0,
27
- " vars" => 0,
28
27
" warnings" => 0
29
28
},
30
29
" TEST_REQUIRES" => {
@@ -56,7 +55,6 @@ my %FallbackPrereqs = (
56
55
" URI" => 0,
57
56
" base" => 0,
58
57
" strict" => 0,
59
- " vars" => 0,
60
58
" warnings" => 0
61
59
);
62
60
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ requires "URI" => "0";
6
6
requires " base" => " 0" ;
7
7
requires " perl" => " 5.006002" ;
8
8
requires " strict" => " 0" ;
9
- requires " vars" => " 0" ;
10
9
requires " warnings" => " 0" ;
11
10
suggests " IO::Socket" => " 0" ;
12
11
suggests " IO::Socket::INET6" => " 0" ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ our $VERSION = '6.20';
3
3
use strict;
4
4
use warnings;
5
5
6
- use vars qw( $SOCKET_CLASS) ;
6
+ our $SOCKET_CLASS ;
7
7
unless ($SOCKET_CLASS ) {
8
8
# Try several, in order of capability and preference
9
9
if (eval { require IO::Socket::IP }) {
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use strict;
4
4
use warnings;
5
5
6
6
# Figure out which SSL implementation to use
7
- use vars qw( $SSL_SOCKET_CLASS) ;
7
+ our $SSL_SOCKET_CLASS ;
8
8
if ($SSL_SOCKET_CLASS ) {
9
9
# somebody already set it
10
10
}
Original file line number Diff line number Diff line change
1
+ use strict;
2
+ use warnings;
3
+
4
+ use Test::More;
5
+
6
+ {
7
+ $Net::HTTP::SOCKET_CLASS = ' Foo' ;
8
+
9
+ require Net::HTTP;
10
+
11
+ is $Net::HTTP::SOCKET_CLASS , ' Foo' ;
12
+
13
+ is_deeply \@Net::HTTP::ISA , [qw[ Foo Net::HTTP::Methods] ];
14
+ }
15
+
16
+ {
17
+ $Net::HTTPS::SSL_SOCKET_CLASS = ' Foo' ;
18
+
19
+ require Net::HTTPS;
20
+
21
+ is $Net::HTTPS::SSL_SOCKET_CLASS , ' Foo' ;
22
+
23
+ is_deeply \@Net::HTTPS::ISA , [qw[ Foo Net::HTTP::Methods] ];
24
+ }
25
+
26
+
27
+ done_testing;
You can’t perform that action at this time.
0 commit comments