Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/perl/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
可以用包含空格的路径清除case perl-ccperl句柄吗?_Perl_Clearcase - Fatal编程技术网

可以用包含空格的路径清除case perl-ccperl句柄吗?

可以用包含空格的路径清除case perl-ccperl句柄吗?,perl,clearcase,Perl,Clearcase,我正在尝试打开路径包含空间的文件,例如: open(FILE, "some\\path with spaces") 我在Windows上使用ccperl,出现错误“无法打开文件” 我已经试过q!"..."!尝试了“\path\with\spaces”以及更多 有什么想法吗?让我们看看。在ActivePerl 5.14.2上,我可以执行以下操作: #!C:\perl\bin\perl.exe use strict; use warnings; open my $fh, '<', 'C:\D

我正在尝试打开路径包含空间的文件,例如:

open(FILE, "some\\path with spaces")
我在Windows上使用
ccperl
,出现错误“无法打开文件”

我已经试过
q!"..."!尝试了
“\path\with\spaces”
以及更多


有什么想法吗?

让我们看看。在ActivePerl 5.14.2上,我可以执行以下操作:

#!C:\perl\bin\perl.exe
use strict; use warnings;
open my $fh, '<', 'C:\Dokumente und Einstellungen\user\Desktop\file spaces.txt'
  or die $!;
print while <$fh>;
close $fh;
#!C:\perl\bin\perl.exe
严格使用;使用警告;
打开我的$fh,“From,ccperl通常表示带有ClearCase的perl 5.8.6

建议:
“您的文件路径”
,但这可能与
open
不兼容