or die "unable to open errorlog.txt: $!\n";