diff options
author | Max Maischein <corion@corion.net> | 2021-06-20 18:54:41 +0200 |
---|---|---|
committer | James E Keenan <jkeenan@cpan.org> | 2021-06-25 09:59:01 -0400 |
commit | c108140682f8d0b0bc5c8b1987fe2a72dde61f42 (patch) | |
tree | 9a1f29a5c1a71f590353409fd6bdf3b53896e2d1 /ext/File-Glob | |
parent | 830a95d37441e49ba2b159b1ae187f1f873a1424 (diff) | |
download | perl-c108140682f8d0b0bc5c8b1987fe2a72dde61f42.tar.gz |
Remove inheritance from Exporter in ext/ modules
Inheriting from Exporter adds several subroutines that are not really
needed by these modules.
The remaining uses of inheritance from Exporter are:
re.pm - this uses export_to_level(), which really, really wants
the inheritance
# Conflicts:
# ext/File-Find/lib/File/Find.pm
# ext/File-Glob/Glob.pm
# ext/GDBM_File/GDBM_File.pm
# ext/Opcode/Opcode.pm
# ext/Pod-Html/lib/Pod/Html.pm
Diffstat (limited to 'ext/File-Glob')
-rw-r--r-- | ext/File-Glob/Glob.pm | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/ext/File-Glob/Glob.pm b/ext/File-Glob/Glob.pm index 42b80cbe5f..5838f2009f 100644 --- a/ext/File-Glob/Glob.pm +++ b/ext/File-Glob/Glob.pm @@ -1,16 +1,14 @@ package File::Glob; use strict; -our($VERSION, @ISA, @EXPORT_OK, @EXPORT_FAIL, %EXPORT_TAGS, $DEFAULT_FLAGS); +our($DEFAULT_FLAGS); require XSLoader; -@ISA = qw(Exporter); - # NOTE: The glob() export is only here for compatibility with 5.6.0. # csh_glob() should not be used directly, unless you know what you're doing. -%EXPORT_TAGS = ( +our %EXPORT_TAGS = ( 'glob' => [ qw( GLOB_ABEND GLOB_ALPHASORT @@ -33,9 +31,9 @@ require XSLoader; ); $EXPORT_TAGS{bsd_glob} = [@{$EXPORT_TAGS{glob}}]; -@EXPORT_OK = (@{$EXPORT_TAGS{'glob'}}, 'csh_glob'); +our @EXPORT_OK = (@{$EXPORT_TAGS{'glob'}}, 'csh_glob'); -$VERSION = '1.35'; +our $VERSION = '1.36'; sub import { require Exporter; |