in reply to Re: How do I open a file in a path that has spaces in the name?
in thread How do I open a file in a path that has spaces in the name?

Which version of Windows?

I have no problem using files with spaces in the file or directory names in my Windows XP:

use strict; use warnings; open my $fh, '<', 'c:\Directory with too many spaces\filename contains + spaces too.txt' or die "Cannot open file"; print while (<$fh>);

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

  • Comment on Re: Answer: How do I open a file in a path that has spaces in the name?
  • Download Code