summaryrefslogtreecommitdiff
path: root/Master/tlpkg/tlperl/lib/assert.pl
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-05-21 00:15:27 +0000
committerKarl Berry <karl@freefriends.org>2012-05-21 00:15:27 +0000
commita4c42bfb2337d37da89d789cb8cc226367994e32 (patch)
treec3eabdef5d565a4e515d2be0d9d4d0540bde0250 /Master/tlpkg/tlperl/lib/assert.pl
parent8274475057f024d35332ac47c2e2f23ea156e6ed (diff)
perl 5.14.2 from siep
git-svn-id: svn://tug.org/texlive/trunk@26525 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/tlperl/lib/assert.pl')
-rw-r--r--Master/tlpkg/tlperl/lib/assert.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/Master/tlpkg/tlperl/lib/assert.pl b/Master/tlpkg/tlperl/lib/assert.pl
index 2c2073c7eaa..d47e0067a2d 100644
--- a/Master/tlpkg/tlperl/lib/assert.pl
+++ b/Master/tlpkg/tlperl/lib/assert.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";
+
#
# This library is no longer being maintained, and is included for backward
# compatibility with Perl 4 programs which may require it.
@@ -18,7 +20,7 @@
# routine shamelessly borrowed from the perl debugger.
sub assert {
- &panic("ASSERTION BOTCHED: $_[$[]",$@) unless eval $_[$[];
+ &panic("ASSERTION BOTCHED: $_[0]",$@) unless eval $_[0];
}
sub panic {