diff options
-rw-r--r-- | ext/File-Glob/Glob.pm | 7 | ||||
-rw-r--r-- | pod/perldeprecation.pod | 12 |
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 |