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