use String::ShellQuote qw( shell_quote ); system(shell_quote($prog, @args) . ' &'));