perl if( -e "windows with space path){}
问题 I'm on Windows :-/ and in my script i've: $ENV{'Powmig Path'}powermt That give me: C:\Program\ Files\EMC\PowerPath\powermt if I do a if(-e $ENV{'Powmig Path'}powermt) it doesn't work. I have try to change my path with some substitution \ / I have also try to add more double quote but nothing seems to work :-( Exemple: #!/usr/bin/perl use strict; use warnings; use File::Spec; if($^O =~ m/^MSWin32$/){ my $tmp = File::Spec->catdir($ENV{'Powmig Path'}, "powermt"); if(-e "\"$tmp\""){ print