my $cmd = "C:\\Program Files\\qbittorrent\\qbittorrent.exe"; my @args = (...); my @cmd = (qq{"$cmd"}, @args); system @cmd == 0 or warn "Couldn't launch [@cmd]: $! / $^E";