How to handle filenames with spaces?
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 system()... When i execute, this gives a dos error saying "The system cannot find the file specified." It's related to the spaces in the filenames I have. This is the perl code :- @files = glob "*.mp3"; $outfile = 'final.mp3'; $firsttime = 1; foreach (@files) { if($firsttime == 1) { @args = ('copy' ,"/b ","$_","+","$outfile", "$outfile"); system (@args); #system("copy /b '$_'+$outfile $outfile"); $firsttime = 0; } else { @args =