summaryrefslogtreecommitdiff
path: root/Master/tlpkg/tlperl/lib/ctime.pl
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/tlperl/lib/ctime.pl')
-rw-r--r--Master/tlpkg/tlperl/lib/ctime.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/Master/tlpkg/tlperl/lib/ctime.pl b/Master/tlpkg/tlperl/lib/ctime.pl
index 1b91ec289f5..aa00d003105 100644
--- a/Master/tlpkg/tlperl/lib/ctime.pl
+++ b/Master/tlpkg/tlperl/lib/ctime.pl
@@ -1,3 +1,5 @@
+warn "Legacy library @{[(caller(0))[6]]} will be removed from the Perl core distribution in the next major release. Please install it from the CPAN distribution Perl4::CoreLibs. It is being used at @{[(caller)[1]]}, line @{[(caller)[2]]}.\n";
+
;# ctime.pl is a simple Perl emulation for the well known ctime(3C) function.
#
# This library is no longer being maintained, and is included for backward
@@ -35,7 +37,6 @@ sub ctime {
package ctime;
local($time) = @_;
- local($[) = 0;
local($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst);
# Determine what time zone is in effect.