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


in reply to Re: System command using array and pipe
in thread System command using array and pipe

That's basically the second one I posted except you don't handle "'" in paths, spaces and other symbols in passwords, etc.