Re: [patch] First batch of whitespace patches (Test::Harness)
Max Maischein [Fri, 24 Aug 2007 22:04:56 +0000 (00:04 +0200)]
Message-ID: <46CF39E8.8020707@corion.net>

p4raw-id: //depot/perl@31764

lib/Test/Harness/Straps.pm

index bab7266..3ee529c 100644 (file)
@@ -3,7 +3,7 @@ package Test::Harness::Straps;
 
 use strict;
 use vars qw($VERSION);
-$VERSION = '0.26';
+$VERSION = '0.26_01';
 
 use Config;
 use Test::Harness::Assert;
@@ -355,7 +355,8 @@ sub _command {
     my $self = shift;
 
     return $ENV{HARNESS_PERL}   if defined $ENV{HARNESS_PERL};
-    return qq["$^X"]            if $self->{_is_win32} && ($^X =~ /[^\w\.\/\\]/);
+    #return qq["$^X"]            if $self->{_is_win32} && ($^X =~ /[^\w\.\/\\]/);
+    return qq["$^X"]            if $^X =~ /\s/ and $^X !~ /^["']/;
     return $^X;
 }