Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: Filename Surrounded by Quotes in a Scalar Variable Causes Open to Fail

by ikegami (Patriarch)
on Sep 04, 2020 at 08:07 UTC ( [id://11121351]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Filename Surrounded by Quotes in a Scalar Variable Causes Open to Fail
in thread Filename Surrounded by Quotes in a Scalar Variable Causes Open to Fail

I know that Windows requires quotes if a file or directory name contains spaces

This is incorrect. Windows system calls include CreateFile, the call used to create file handles and possibly files, takes a path, not a quoted path.

You may need to use quote paths in shell commands to ensure the path is correctly passed to the program. But just like Windows, open expects a path, not a fragment of a shell command.

Replies are listed 'Best First'.
Re^4: Filename Surrounded by Quotes in a Scalar Variable Causes Open to Fail
by roho (Bishop) on Sep 05, 2020 at 05:01 UTC
    Thanks ikegami. You're right. Windows requires quotes around filenames that contain a space in cmd commands (and interestingly, Windows automatically puts quotes around paths in shortcuts when the path name contains a space).

    "It's not how hard you work, it's how much you get done."

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11121351]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-19 06:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found