You want to quote the string properly for your shell. Most likely String::ShellQuote will do what you want.
In reply to Re^3: quoting/escaping file names
by Corion
in thread quoting/escaping file names
by famatte
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |