open ERROR, '>', "c:/...." or die "error opening: $!\n";