If you really need to quote strings for a bash-like shell, try one of these (untested)Or you could use a module, like String::ShellQuote, that most likely has been tested.
In reply to Re^5: How to capture error messages... (shell quoting recipe)
by bart
in thread How to capture error messages...
by fabster01
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |