in reply to Re^4: Failed to open file for write
in thread Failed to open file for write

I don't know if this helps, but...
#Open the output file for saving the results; open my $fh_out, '>', $write_dir.'/'.$filename or die "failed to open '$filename' for write";
#Open the output file for saving the results; open my $fh_out, '>', "$write_dir/$filename" or die "failed to open \'$filename\' for write $!";

Replies are listed 'Best First'.
Re^6: Failed to open file for write
by wrkrbeee (Scribe) on Apr 13, 2016 at 00:01 UTC
    Super! I appreciate your insight!!