open my $wfh, '>>', "$dir/$outfile" or die "ERROR: Can't open/append the damned output file! The OS says:$!";