BEGIN { open STDERR,">>","error.log" or die "Can't open error.log: $!"; }