develooper Front page | perl.perl5.porters | Postings from May 2019

[perl #134137] Implement preventing Sys::Hostname::hostname() fromaccepting arguments

Thread Previous
From:
James E Keenan
Date:
May 25, 2019 01:56
Subject:
[perl #134137] Implement preventing Sys::Hostname::hostname() fromaccepting arguments
Message ID:
rt-4.0.24-18267-1558749373-1945.134137-75-0@perl.org
# New Ticket Created by  James E Keenan 
# Please include the string:  [perl #134137]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=134137 >


pod/perldeprecation.pod contains this entry for perl-5.32:

#####
hostname() doesn't accept any arguments

The function
"hostname()" in the Sys::Hostname module has always been
documented to be called with no arguments. Historically it
has not enforced this, and has actually accepted and
ignored any arguments. As a result, some users have got the
mistaken impression that an argument does something useful.
To avoid these bugs, the function is being made strict.
Passing arguments was deprecated in Perl 5.28, and will
become fatal in Perl 5.32.
#####

This entry was recorded in the following commit:

#####
commit 0c9c439d08a65206d442724bcd9fb29fa5a7f937
Author: Zefram <zefram@fysh.org>
Date:   Wed Dec 6 16:28:18 2017 +0000

document hostname(@args) deprecation

Passing arguments to Sys::Hostname::hostname() is already
deprecated. Note the deprecation's agreed removal version
of Perl 5.32. Also document it in perldeprecation.pod.
#####

Make it so.

Thank you very much.
Jim Keenan

Thread Previous


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