X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fbigint.pl;h=a31bfec82b54d2febcbb1af84dd196bdc66d2bb5;hb=b41aadf259cf55858c5ab0386356cdbe2dc49a6b;hp=9a3d50d365af843b12f6867b651bda418699fd21;hpb=847a5fae45dac396d0f9e1bb61d5b4ff9d94cdcd;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/bigint.pl b/lib/bigint.pl index 9a3d50d..a31bfec 100644 --- a/lib/bigint.pl +++ b/lib/bigint.pl @@ -5,9 +5,15 @@ package bigint; # # In particular, this should not be used as an example of modern Perl # programming techniques. +# This legacy library is deprecated and will be removed in a future +# release of perl. # # Suggested alternative: Math::BigInt -# + +warn( "The 'bigint.pl' legacy library is deprecated and will be" + . " removed in the next major release of perl. Please use the" + . " Math::BigInt module instead." ); + # arbitrary size integer math package # # by Mark Biggar @@ -20,7 +26,7 @@ package bigint; # '+0' canonical zero value # ' -123 123 123' canonical value '-123123123' # '1 23 456 7890' canonical value '+1234567890' -# Output values always always in canonical form +# Output values always in canonical form # # Actual math is done in an internal format consisting of an array # whose first element is the sign (/^[+-]$/) and whose remaining