From: Steffen Mueller Date: Wed, 2 Sep 2009 16:45:23 +0000 (+0200) Subject: Deprecate exceptions.pl with a warning X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=25209816f53a8d9986b7b64f9d3cf1004452aacc;p=p5sagit%2Fp5-mst-13.2.git Deprecate exceptions.pl with a warning --- diff --git a/lib/exceptions.pl b/lib/exceptions.pl index ed1f927..8c77a07 100644 --- a/lib/exceptions.pl +++ b/lib/exceptions.pl @@ -3,11 +3,15 @@ # # 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. -# -# + +warn( "The 'exceptions.pl' legacy library is deprecated and will be" + . " removed in the next major release of perl." ); + # Here's a little code I use for exception handling. It's really just # glorfied eval/die. The way to use use it is when you might otherwise # exit, use &throw to raise an exception. The first enclosing &catch