mirror of
https://codeberg.org/scip/Config-General.git
synced 2025-12-16 20:21:01 +01:00
don't use vars, use our
Also drop Exporter and @EXPORT from modules that don't export anything.
This commit is contained in:
@@ -34,9 +34,8 @@ use Exporter;
|
|||||||
|
|
||||||
$Config::General::VERSION = "2.65";
|
$Config::General::VERSION = "2.65";
|
||||||
|
|
||||||
use vars qw(@ISA @EXPORT_OK);
|
|
||||||
use base qw(Exporter);
|
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}";
|
use constant _UTF8_BOM => "\x{ef}\x{bb}\x{bf}";
|
||||||
|
|
||||||
|
|||||||
@@ -14,11 +14,9 @@ use Config::General 1.18;
|
|||||||
|
|
||||||
use FileHandle;
|
use FileHandle;
|
||||||
use Carp;
|
use Carp;
|
||||||
use Exporter ();
|
|
||||||
use vars qw(@ISA @EXPORT);
|
|
||||||
|
|
||||||
# inherit new() and so on from Config::General
|
# inherit new() and so on from Config::General
|
||||||
@ISA = qw(Config::General Exporter);
|
our @ISA = qw(Config::General);
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
|
|||||||
@@ -13,12 +13,10 @@ $Config::General::Interpolated::VERSION = "2.16";
|
|||||||
use strict;
|
use strict;
|
||||||
use Carp;
|
use Carp;
|
||||||
use Config::General;
|
use Config::General;
|
||||||
use Exporter ();
|
|
||||||
|
|
||||||
|
|
||||||
# Import stuff from Config::General
|
# Import stuff from Config::General
|
||||||
use vars qw(@ISA @EXPORT);
|
our @ISA = qw(Config::General);
|
||||||
@ISA = qw(Config::General Exporter);
|
|
||||||
|
|
||||||
|
|
||||||
sub new {
|
sub new {
|
||||||
|
|||||||
Reference in New Issue
Block a user