Skip to content

Commit a0a5d77

Browse files
remove use of "use vars" and replace with "our"
1 parent 92dfa82 commit a0a5d77

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

lib/HTTP/Daemon.pm

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
package HTTP::Daemon;
22

33
use strict;
4-
use vars qw($VERSION @ISA $PROTO $DEBUG);
4+
use warnings;
55

6-
$VERSION = "6.01";
6+
our $VERSION = "6.01";
77

88
use IO::Socket qw(AF_INET INADDR_ANY INADDR_LOOPBACK inet_ntoa);
9-
@ISA=qw(IO::Socket::INET);
9+
our @ISA = qw(IO::Socket::INET);
1010

11-
$PROTO = "HTTP/1.1";
11+
our $PROTO = "HTTP/1.1";
1212

13+
our $DEBUG;
1314

1415
sub new
1516
{
@@ -75,10 +76,12 @@ sub product_tokens
7576

7677

7778
package HTTP::Daemon::ClientConn;
79+
use strict;
80+
use warnings;
7881

79-
use vars qw(@ISA $DEBUG);
8082
use IO::Socket ();
81-
@ISA=qw(IO::Socket::INET);
83+
our @ISA = qw(IO::Socket::INET);
84+
our $DEBUG;
8285
*DEBUG = \$HTTP::Daemon::DEBUG;
8386

8487
use HTTP::Request ();

0 commit comments

Comments
 (0)