X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fvars.pm;h=4abc2d1c08ad745f4c959629534a5eb1c16945c1;hb=32ce01bccb8e58ee340ca4100517f9c031630ea7;hp=4f3bddf2fa0987db569b5689b814503fa5b2528e;hpb=7eb43e029e176f4ffee0d8c749b60e92343e3503;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/vars.pm b/lib/vars.pm index 4f3bddf..4abc2d1 100644 --- a/lib/vars.pm +++ b/lib/vars.pm @@ -1,22 +1,16 @@ package vars; -require 5.002; +require 5.6.0; -our $VERSION = '1.00'; - -# The following require can't be removed during maintenance -# releases, sadly, because of the risk of buggy code that does -# require Carp; Carp::croak "..."; without brackets dying -# if Carp hasn't been loaded in earlier compile time. :-( -# We'll let those bugs get found on the development track. -require Carp if $] < 5.00450; +our $VERSION = '1.01'; use warnings::register; -require strict; +use strict qw(vars subs); sub import { my $callpack = caller; - my ($pack, @imports, $sym, $ch) = @_; + my ($pack, @imports) = @_; + my ($sym, $ch); foreach (@imports) { ($ch, $sym) = unpack('a1a*', $_); if ($sym =~ tr/A-Za-z_0-9//c) {