* Synced the perlfaq
[p5sagit/p5-mst-13.2.git] / lib / vars.pm
index cff63d6..a0151b8 100644 (file)
@@ -13,7 +13,7 @@ sub import {
     my ($sym, $ch);
     foreach (@imports) {
         if (($ch, $sym) = /^([\$\@\%\*\&])(.+)/) {
-           if ($sym =~ /\P{IsWord}/) {
+           if ($sym =~ /\W/) {
                # time for a more-detailed check-up
                if ($sym =~ /^\w+[[{].*[]}]$/) {
                    require Carp;