Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: handle special character in filename

by BillKSmith (Deacon)
on Oct 17, 2012 at 21:04 UTC ( #999608=note: print w/ replies, xml ) Need Help??


in reply to Re: handle special character in filename
in thread handle special character in filename

The list form may work in this case, but I doubt that it will if the special character is a space. I have been unable to truly solve a similiar problem where system does not correctly parse a command that includes filenames that contain spaces.

Bill


Comment on Re^2: handle special character in filename
Re^3: handle special character in filename
by i5513 (Monk) on Oct 17, 2012 at 23:24 UTC

    Hello

    I have test system $command,@params with sed and a file with space in its filename, and it works (at least in Debian)

    $ echo "pa" > "a b" $ cat p system ("sed","s,a,o,","a b"); $ perl p po
Re^3: handle special character in filename
by moritz (Cardinal) on Oct 18, 2012 at 05:31 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (18)
As of 2015-07-02 13:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (40 votes), past polls