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

Re: create separate output files based on name

by roboticus (Chancellor)
on Dec 18, 2013 at 18:14 UTC ( #1067671=note: print w/replies, xml ) Need Help??


in reply to create separate output files based on name

rruser:

Try using a hash table to hold your open file handles, using the company name as the key.

For each record, check whether you have an open file handle. If you do, then write the record. Otherwise open the file, store it in the hash, and then write the record.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

  • Comment on Re: create separate output files based on name

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1067671]
help
Chatterbox?
and the questions are moot...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2017-06-29 09:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (657 votes). Check out past polls.