in reply to Multiple csv file rendering by PERL using single file open handle?

You can (re-)use the same filehandle but you will have to close and re-open it for each next file

That being said, your code has some problems (I will mention a few, there may be more):

  1. $seculert_dir is not declared nor defined. That should have given you an error message.
  2. The OUT filehandle is not opened.
  3. open(FP, ">>$seculert_qradar_list") opens a filehandle for appending, but you are reading from it.
.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics