How to handle filenames with spaces?

前端 未结 7 807
后悔当初
后悔当初 2020-12-11 03:37

I use Perl on windows(Active Perl). I have a perl program to glob the files in current folder, and concatenate them all using dos copy command called from within using syste

7条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-11 04:21

    Your code doesn't add any quotes around the filenames.

    Try

    "\"$_\""
    

    and

    "\"$outfile\""
    

提交回复
热议问题