in reply to Problem with program structure

Win:

I think you're going to get verbally mauled for that post because your code is SO long and your "question" is clearly unclear. :-) Who could 'advise you' to start over, when they have NO idea what your problem/goal is? Remember... we're not in your cubicle right now. :)

That being said.... let me just say three things about your style, to start off the 'constructive criticism':

1) Scalar MADNESS = Your program has WAY to many dollar sign sigils ($) everywhere. Consider looking up %hashes and using a 'data structure.'

2) Variable naming -- you're BEGGING for trouble using such long and mixed cased variable names (at least you have strict&warnings at the top!!) People/Monks can't care to read that many characters, so use $short $good $names.

3) Subroutine LENGTH -- You should be able to describe your goal/problem in a couple of paragraphs/sentences (ie. WTF you're trying to do. :-) ) Take that description and make a sub{} for each logically part.

Please, re-edit your node in accordance with the Community's Standard, and I'm sure people will be lining up to help you. :-)

Kurt