Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: MS system open file with space

by Dallaylaen (Friar)
on Feb 21, 2013 at 07:12 UTC ( #1019907=note: print w/replies, xml ) Need Help??

in reply to MS system open file with space

Writing this without a Windows machine at hand, but what about using list form of system instead? It should escape the arguments for you.
system ('start', $dir_to_open);
Does this solve the problem?

Replies are listed 'Best First'.
Re^2: MS system open file with space
by BillKSmith (Priest) on Feb 21, 2013 at 13:54 UTC
    When a pathname includes spaces, windows requires double quotes around the entire path, as BrowserUK has already shown.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1019907]
[ambrus]: And if you need a syntax highlighter to color parenthesis green and numbers black and letters blue, then you're using the wrong font.
[ambrus]: I have to tolerate syntax highlighters when other people use them, but I don't use them myself. And sorry for the rant.
[GotToBTru]: I appreciate the ability to highlight matching brackets/ parentheses/ braces, both for my own code and the inconsistently indented code of others
[Corion]: I like editors that automatically highlight the matching parenthesis (like % in vi), but that's roughly the extent to which I like editor support ;)
[GotToBTru]: same here Corion.
[Corion]: I tried for a short time (well, 8 hours now) to get Perl::Tidy set up but then found that it doesn't support (new-style) signatures and then stopped again ;))

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (12)
As of 2017-02-27 12:47 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (385 votes). Check out past polls.