Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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


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.


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?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2015-11-29 12:03 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (750 votes), past polls