in reply to Data driven programming? Not sure.

Generally the answer to this sort of problem is to refactor the code so the common part is in base class code and the bits that change are provided by the derived classes. Oh, you did mean this in the context of an object oriented paradigm where making this sort of thing happen is just part of the background magic didn't you?


DWIM is Perl's answer to Gödel