#!/usr/bin/perl -w
use strict;

open(FH, '>>foo.txt') or die($!);
close(FH);