How to handle filenames with spaces?

前端 未结 7 801
后悔当初
后悔当初 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:33

    $filename =~ s/\ /\ /;

    what ever the filename is just use slash to refrence spaces

提交回复
热议问题