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

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

From:
James E Keenan
Date:
October 13, 2018 14:09
Subject:
[perl #133586] Remove File::Glob::glob()
Message ID:
rt-4.0.24-2139-1539439748-1334.133586-75-0@perl.org
# New Ticket Created by  James E Keenan 
# Please include the string:  [perl #133586]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=133586 >


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.



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