open my $fh, '>>', 'file.txt' or die "Ouch: $!"; close $fh;