Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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 chilling in the Monastery: (10)
As of 2016-10-26 16:12 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (344 votes). Check out past polls.