Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Multiple csv file rendering by PERL using single file open handle?

by CountZero (Bishop)
on Dec 21, 2013 at 12:09 UTC ( [id://1068029]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1068029]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-19 06:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found