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;
Electric dreams (yikes!)
2001: A Space Odyssey
None of the above, please specify
Results (127 votes),