BEGIN { open(STDERR, ">>stderr.log") or die "Failed to open log file"; }