open(hits,"$filename") or print "Can't open $filename"; #"die" could give you an "Internal server error" without any description.