run/locale.t: Fix bareword error
authorKarl Williamson <public@khwilliamson.com>
Wed, 11 Dec 2013 16:03:03 +0000 (09:03 -0700)
committerKarl Williamson <public@khwilliamson.com>
Tue, 17 Dec 2013 05:53:36 +0000 (22:53 -0700)
This string should be in quotes to be properly eval'd.  Prior to this
patch this .t failed when run by hand as the bareword warning is made
fatal.

t/run/locale.t

index 44223174e8990142068d999686c29ad6aea2428a..0ecf9a941ee0bca88d0d3770ee6c935e49359882 100644 (file)
@@ -141,7 +141,7 @@ EOF
         # this test is to prevent regression of [rt.perl.org #105784]
         fresh_perl_is(<<"EOF",
             BEGIN {
-                if($Config{d_setlocale}) {
+                if("$Config{d_setlocale}") {
                     require locale; import locale;
                 }
             }