Why doesn't Perl see my file in the working Windows directory?

前端 未结 1 1536
栀梦
栀梦 2021-01-22 22:12

I\'m using the current release of Strawberry Perl and Windows Server 2008.

For some reason Perl doesn\'t seem to find files in the current working directory:

<         


        
相关标签:
1条回答
  • 2021-01-22 23:03

    On the Windows command line, use double quotes around command line arguments that need quoting.

    perl -ne "print if (rand() < .01)" train.csv
    
    0 讨论(0)
提交回复
热议问题