develooper Front page | perl.perl5.porters | Postings from October 2018

[perl #133586] Remove File::Glob::glob() in perl-5.30

From:
James E Keenan via RT
Date:
October 13, 2018 20:06
Subject:
[perl #133586] Remove File::Glob::glob() in perl-5.30
Message ID:
rt-4.0.24-11714-1539461153-1943.133586-15-0@perl.org
On Sat, 13 Oct 2018 14:09:08 GMT, jkeenan@pobox.com wrote:
> pod/perldeprecate.pod contains this section on File::Glob::glob():
> 
> #####
> "File::Glob::glob()" will disappear
> 
> "File::Glob" has a function called "glob", which just calls
> "bsd_glob". However, its prototype is different from the
> prototype of "CORE::glob", and hence, "File::Glob::glob"
> should not be used.
> 
> "File::Glob::glob()" was deprecated in Perl 5.8. A
> deprecation message was issued from Perl 5.26 onwards, and
> the function will disappear in Perl 5.30.
> 
> Code using "File::Glob::glob()" should call
> "File::Glob::bsd_glob()" instead.
> #####
> 
> This deprecation has not yet been promoted into a fatalization.
> 
> #####
> $ ./bin/perl -Ilib -V | ack 'Commit id|Compiled at'
>    Commit id: 8fc05532aec097a3733b92fbb2cabb1528daa5c4
>    Compiled at Oct 13 2018 10:02:56
> $ ./bin/perl -MFile::Glob -e 'File::Glob::glob();'
> File::Glob::glob() will disappear in perl 5.30. Use 
> File::Glob::bsd_glob() instead. at -e line 1.
> Usage: File::Glob::bsd_glob(pattern_sv, ...) at -e line 1.
> #####
> 
> Implement the fatalization.  Adapt tests and documentation accordingly.

Please review the implementation in this branch:

smoke-me/jkeenan/133586-file-glob-glob

Or in the patch attached.

It would be good to get this reviewed and merged to blead in time for the monthly development release scheduled for next Saturday, Oct 20.

Thank you very much.
-- 
James E Keenan (jkeenan@cpan.org)

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=133586



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About