open TMP, ">$tmp" or die "A grim and horrible death";