From: Tom Phoenix Date: Tue, 1 Apr 1997 05:10:14 +0000 (-0800) Subject: Tweaks to constant.pm X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7e5dee47ee5bc43e90e14d8c27c33a42dd0a26ae;p=p5sagit%2Fp5-mst-13.2.git Tweaks to constant.pm I've made a couple of (trivial) changes, in this compared to what was distributed in _96. Patch available separately. Cape does not actually enable wearer to fly. --- diff --git a/lib/constant.pm b/lib/constant.pm index 4416cf2..a0d4f9d 100644 --- a/lib/constant.pm +++ b/lib/constant.pm @@ -80,6 +80,7 @@ B that value in the current implementation. Magical values, tied values, and references can be made into constants at compile time, allowing for way cool stuff like this. +(These error numbers aren't totally portable, alas.) use constant E2BIG => ($! = 7); print E2BIG, "\n"; # something like "Arg list too long" @@ -126,7 +127,7 @@ use vars qw($VERSION); #======================================================================= # Some of this stuff didn't work in version 5.003, alas. -require 5.003_20; +require 5.003_96; #======================================================================= # import() - import symbols into user's namespace