# Open the output file and save hash in $outfile_RX_CSV my $outfile_CSV = &getOutputFilename($infile_CSV); open (my $outfile2, '>', "$outfile_CSV") or die "Unable to open $outfile_CSV: $!\n";