open (LOG, ">>test.out"); #### open (LOG, ">>test.out") or die "Failed to open test.out: $!";