X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fvars.pm;h=6ae5373f89e332e47110dd541122b0a6974f9b57;hb=48f30392d43cee251b79c036ba2aa18edf85fc30;hp=334af9630adaf854f4b678b77571f55eeed74f3b;hpb=15313f9cd3ec9469f8bc8f7fed93c5d5de606948;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/vars.pm b/lib/vars.pm index 334af96..6ae5373 100644 --- a/lib/vars.pm +++ b/lib/vars.pm @@ -14,7 +14,7 @@ sub import { my ($pack, @imports, $sym, $ch) = @_; foreach $sym (@imports) { ($ch, $sym) = unpack('a1a*', $sym); - if ($sym =~ tr/A-Za-Z_0-9//c) { + if ($sym =~ tr/A-Za-z_0-9//c) { # time for a more-detailed check-up if ($sym =~ /::/) { require Carp; @@ -45,7 +45,7 @@ __END__ =head1 NAME -vars - Perl pragma to predeclare global variable names +vars - Perl pragma to predeclare global variable names (obsolete) =head1 SYNOPSIS @@ -53,6 +53,10 @@ vars - Perl pragma to predeclare global variable names =head1 DESCRIPTION +NOTE: The functionality provided by this pragma has been superseded +by C declarations, available in Perl v5.6.0 or later. See +L. + This will predeclare all the variables whose names are in the list, allowing you to use them under "use strict", and disabling any typo warnings.