http://www.perlmonks.org?node_id=999608


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

Replies are listed 'Best First'.
Re^3: handle special character in filename
by moritz (Cardinal) on Oct 18, 2012 at 05:31 UTC
Re^3: handle special character in filename
by i5513 (Pilgrim) 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