可以用包含空格的路径清除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
不兼容