in reply to Code Design Help

There is no right or wrong answer to this -- use what will work best for you. Keep efficiency in mind too, don't do any unnecessary things that only slow the program down.
Since I don't know what $resolver is or what else must be done to the result, all I can say is "that looks fine".

~Thomas~
I believe that the source code to life is written in Perl :-)