Skip to content

Commit

Permalink
switch from use vars to our
Browse files Browse the repository at this point in the history
There is no reason to prefer use vars over our since we require perl
5.8.1.
  • Loading branch information
haarg committed Jun 10, 2024
1 parent 68d5c55 commit b14ca02
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/Net/SSLeay.pm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ use 5.8.1;

use strict;
use Carp;
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK $AUTOLOAD $CRLF);
use Socket;
use Errno;

Expand Down Expand Up @@ -69,9 +68,9 @@ our $how_random = 512;
# inc/Test/Net/SSLeay.pm
# inc/Test/Net/SSLeay/Socket.pm
# lib/Net/SSLeay/Handle.pm
$VERSION = '1.94';
our $VERSION = '1.94';

@ISA = qw(Exporter);
our @ISA = qw(Exporter);

# This array is automatically generated - do not manually modify it.
# To add or remove a constant, edit helper_script/constants.txt, then run
Expand Down Expand Up @@ -990,9 +989,11 @@ my @functions = qw(
OCSP_response_results
);

@EXPORT_OK = ( @constants, @functions );
our @EXPORT;
our @EXPORT_OK = ( @constants, @functions );

sub AUTOLOAD {
our $AUTOLOAD;
# This AUTOLOAD is used to 'autoload' constants from the constant()
# XS function. If a constant is not found then control is passed
# to the AUTOLOAD in AutoLoader.
Expand All @@ -1017,7 +1018,7 @@ XSLoader::load('Net::SSLeay', $VERSION);

# Preloaded methods go here.

$CRLF = "\x0d\x0a"; # because \r\n is not fully portable
our $CRLF = "\x0d\x0a"; # because \r\n is not fully portable

### Print SSLeay error stack

Expand Down

0 comments on commit b14ca02

Please sign in to comment.