my $append = ...; # If true append, else overwrite. system "cat tmp " . ($append ? ">>" : ">") . " LOG" and die;