Q&A > input and output > How do you open a filehandle to a DOS file which has spaces in the filename? contributed by turnstep
open (SPACEY, "this file has spaces.txt") || die;
my $filename = "this file has spaces.txt"
open (SPACEY, "$filename") || die;
Results (340 votes),