$command_line = "c:\\execu $first_build "; # note trailing space $command_line .= join " ", @other_builds; $command_line .= " file.c"; #### $command_line .= join " ", ("c:\\execu $first_build",@other_builds,"file.c");