]> git.vpit.fr Git - perl/modules/Sub-Op.git/blobdiff - Makefile.PL
Fix passing shell quoted arguments to Sub::Op::LexicalSub Makefile.PL
[perl/modules/Sub-Op.git] / Makefile.PL
index a7e84dbdec4fd9d2e4c0d1adda9439ccb7814d3f..539884e6d8a1dafb2072d9821ff468491f21d18c 100644 (file)
@@ -80,6 +80,7 @@ WriteMakefile(
  open my $fh, '>', $args_dat or die "open(>$args_dat): $!";
  for (@ARGV) {
   my $arg = $_;
+  $arg =~ s{\s*(['"])\s*(.*)\s*\1\s*$}{$2}s;
   $arg =~ s{([^=/.a-zA-Z0-9-])}{sprintf "[%d]", ord $1}ge;
   print $fh "$arg\n";
  }