簡體   English   中英

為什么Perl在工作的Windows目錄中看不到我的文件?

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM