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


in reply to Dangerous Characters for system calls

Um, do it in such a way as to not require that :)

For example see TFMail,

or use four argument open $fh, '-|', 'sendmail', $arg, $arg, $arg, $arg

or use String::ShellQuote