maslas has asked for the wisdom of the Perl Monks concerning the following question:

I am attempting to find files on my system to modify and some of them have spaces in the path name.
For example: c:\Program Files\My Projects\Scripts For Oracle\

When I run my script it finds the path and fails to open the file.
The line is:
"open(FILE,"> $filename") || die "Could not open the file for write";

where $filename is the files full path and name.
What do I need to do so my script can open the file in a path like this?

Originally posted as a Categorized Question.

Replies are listed 'Best First'.
Re: How do I open a file in a Win32 path?
by Mr. Muskrat (Canon) on Jun 19, 2002 at 01:40 UTC