[英]Why doesn't Perl see my file in the working Windows directory?
我正在使用當前版本的Strawberry Perl和Windows Server 2008。
出於某種原因,Perl似乎沒有在當前工作目錄中找到文件:
F:\temp\hackr\e>ls
test.csv train.csv
F:\temp\hackr\e>perl -ne 'print if (rand() < .01)' train.csv
The system cannot find the file specified.
在Windows命令行上,在需要引用的命令行參數周圍使用雙引號。
perl -ne "print if (rand() < .01)" train.csv
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.