Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: handle special character in filename

by BillKSmith (Chaplain)
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 examining the Monastery: (8)
As of 2014-12-27 14:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls