This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8670a61
)
Deprecate assert.pl with a warning
author
Steffen Mueller
<smueller@cpan.org>
Wed, 2 Sep 2009 16:32:53 +0000
(18:32 +0200)
committer
Steffen Mueller
<smueller@cpan.org>
Wed, 2 Sep 2009 16:33:09 +0000
(18:33 +0200)
lib/assert.pl
patch
|
blob
|
blame
|
history
diff --git
a/lib/assert.pl
b/lib/assert.pl
index
4c9ebf2
..
768ae49
100644
(file)
--- a/
lib/assert.pl
+++ b/
lib/assert.pl
@@
-11,6
+11,9
@@
# be printed out by &panic, which is just the stack-backtrace
# routine shamelessly borrowed from the perl debugger.
+warn( "The 'assert.pl' legacy library is deprecated and will be"
+ . " removed in the next major release of perl." );
+
sub assert {
&panic("ASSERTION BOTCHED: $_[$[]",$@) unless eval $_[$[];
}