summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSawyer X <xsawyerx@cpan.org>2020-05-24 00:46:46 +0300
committerSawyer X <xsawyerx@cpan.org>2020-05-24 00:48:09 +0300
commit4db50d5b5d47352292dad224cee41ca57ff05a38 (patch)
tree09cc63a96bba8e4b7206c1a4a40a256d4799a729
parentbbe8fe5cdb81f0ff558157e082abae7aeb6cc674 (diff)
downloadperl-4db50d5b5d47352292dad224cee41ca57ff05a38.tar.gz
Remove File::Glob::glob() entirely
-rw-r--r--ext/File-Glob/Glob.pm7
-rw-r--r--pod/perldeprecation.pod12
2 files changed, 12 insertions, 7 deletions
diff --git a/ext/File-Glob/Glob.pm b/ext/File-Glob/Glob.pm
index 368a755f50..b09948d35a 100644
--- a/ext/File-Glob/Glob.pm
+++ b/ext/File-Glob/Glob.pm
@@ -70,13 +70,6 @@ if ($^O =~ /^(?:MSWin32|VMS|os2|dos|riscos)$/) {
$DEFAULT_FLAGS |= GLOB_NOCASE();
}
-# File::Glob::glob() removed in perl-5.30 because its prototype is different
-# from CORE::glob() (use bsd_glob() instead)
-sub glob {
- die "File::Glob::glob() was removed in perl 5.30. " .
- "Use File::Glob::bsd_glob() instead. $!";
-}
-
1;
__END__
diff --git a/pod/perldeprecation.pod b/pod/perldeprecation.pod
index 95a94cd403..0f46480e12 100644
--- a/pod/perldeprecation.pod
+++ b/pod/perldeprecation.pod
@@ -165,6 +165,18 @@ L<perlapi/Character classification>.
This change was originally scheduled for 5.30, but was delayed until
5.32.
+=head3 C<< File::Glob::glob() >> was removed
+
+C<< File::Glob >> has a function called C<< glob >>, which just calls
+C<< bsd_glob >>.
+
+C<< File::Glob::glob() >> was deprecated in Perl 5.8. A deprecation
+message was issued from Perl 5.26 onwards, and the function has now
+disappeared in Perl 5.30.
+
+Code using C<< File::Glob::glob() >> should call
+C<< File::Glob::bsd_glob() >> instead.
+
=head2 Perl 5.30
=head3 C<< $* >> is no longer supported