use strict; open FH, ">test.txt" or die "not able to open file for writing $!";