work around backslash issues with Win32 paths in taint test
[p5sagit/local-lib.git] / t / taint-mode.t
index 3561e0c..073555a 100644 (file)
@@ -30,8 +30,7 @@ print $fh <<EOM;
 use strict; use warnings;
 use local::lib '$dir1';
 warn 'using lib dir $dir1', "\n";
-my \$dir = '$dir1';
-if (grep { m{^\\Q\$dir\\E/} } \@INC) {
+if (grep { m{^\\Q$dir1\\E/} } \@INC) {
   exit 0;
 }
 exit 1