diff options
Diffstat (limited to 'Master/tlpkg/tlperl/lib/assert.pl')
-rw-r--r-- | Master/tlpkg/tlperl/lib/assert.pl | 4 |
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 { |