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
Your code doesn't add any quotes around the filenames.
Try
"\"$_\""
and
"\"$outfile\""