From: Steffen Mueller Date: Wed, 2 Sep 2009 18:14:40 +0000 (+0200) Subject: Deprecate hostname.pl with a warning X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d9591f87ff50af3a58bed017b7ac5c2a5c448219;p=p5sagit%2Fp5-mst-13.2.git Deprecate hostname.pl with a warning --- diff --git a/lib/hostname.pl b/lib/hostname.pl index 63eea8f..cc37d49 100644 --- a/lib/hostname.pl +++ b/lib/hostname.pl @@ -2,12 +2,18 @@ # # This library is no longer being maintained, and is included for backward # compatibility with Perl 4 programs which may require it. +# This legacy library is deprecated and will be removed in a future +# release of perl. # # In particular, this should not be used as an example of modern Perl # programming techniques. # # Suggested alternative: Sys::Hostname -# + +warn( "The 'hostname.pl' legacy library is deprecated and will be" + . " removed in the next major release of perl. Please use the" + . " Sys::Hostname module instead." ); + sub hostname { local(*P,@tmp,$hostname,$_);