in reply to Generating HoH...

It is difficult to divine your requirements without an example of the data you are working with. Would it be possible for you to post a sample (sanitized if necessary) of the data so that we have a better chance of helping you.

In your code snippet, where does $npo get initialised, ditto $fy_closed? Also, looking at your output, there is an empty key in the $VAR8 hash which suggests that there might be multiple TAB delimiters or missing data fields.

Please give us some more to go on.

Cheers

JohnGG