open (STDERR, '>', "error.txt") or die "Error: couldn't redirect STDOUT to error.txt:";