don't use vars, use our

Also drop Exporter and @EXPORT from modules that don't export anything.
This commit is contained in:
Graham Knop
2024-10-18 02:30:21 +02:00
parent 6131988cd8
commit db3b5c97a6
3 changed files with 3 additions and 8 deletions

View File

@@ -34,9 +34,8 @@ use Exporter;
$Config::General::VERSION = "2.65";
use vars qw(@ISA @EXPORT_OK);
use base qw(Exporter);
@EXPORT_OK = qw(ParseConfig SaveConfig SaveConfigString);
our @EXPORT_OK = qw(ParseConfig SaveConfig SaveConfigString);
use constant _UTF8_BOM => "\x{ef}\x{bb}\x{bf}";

View File

@@ -14,11 +14,9 @@ use Config::General 1.18;
use FileHandle;
use Carp;
use Exporter ();
use vars qw(@ISA @EXPORT);
# inherit new() and so on from Config::General
@ISA = qw(Config::General Exporter);
our @ISA = qw(Config::General);
use strict;

View File

@@ -13,12 +13,10 @@ $Config::General::Interpolated::VERSION = "2.16";
use strict;
use Carp;
use Config::General;
use Exporter ();
# Import stuff from Config::General
use vars qw(@ISA @EXPORT);
@ISA = qw(Config::General Exporter);
our @ISA = qw(Config::General);
sub new {