File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545 "base" : " 0" ,
4646 "perl" : " 5.006002" ,
4747 "strict" : " 0" ,
48- "vars" : " 0" ,
4948 "warnings" : " 0"
5049 },
5150 "suggests" : {
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ my %WriteMakefileArgs = (
2424 " URI" => 0,
2525 " base" => 0,
2626 " strict" => 0,
27- " vars" => 0,
2827 " warnings" => 0
2928 },
3029 " TEST_REQUIRES" => {
@@ -56,7 +55,6 @@ my %FallbackPrereqs = (
5655 " URI" => 0,
5756 " base" => 0,
5857 " strict" => 0,
59- " vars" => 0,
6058 " warnings" => 0
6159);
6260
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ requires "URI" => "0";
66requires " base" => " 0" ;
77requires " perl" => " 5.006002" ;
88requires " strict" => " 0" ;
9- requires " vars" => " 0" ;
109requires " warnings" => " 0" ;
1110suggests " IO::Socket" => " 0" ;
1211suggests " IO::Socket::INET6" => " 0" ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ our $VERSION = '6.20';
33use strict;
44use warnings;
55
6- use vars qw( $SOCKET_CLASS) ;
6+ our $SOCKET_CLASS ;
77unless ($SOCKET_CLASS ) {
88 # Try several, in order of capability and preference
99 if (eval { require IO::Socket::IP }) {
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use strict;
44use warnings;
55
66# Figure out which SSL implementation to use
7- use vars qw( $SSL_SOCKET_CLASS) ;
7+ our $SSL_SOCKET_CLASS ;
88if ($SSL_SOCKET_CLASS ) {
99 # somebody already set it
1010}
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