open FH, '>>', 'foo.txt' or die "can't append: $!"; print FH, $stuff; close FH;