My thesis contains many examples (c. 300) each of which is numbered and has a unique label. I also have a database containing all my examples (c. 1000) and those which have been included in my thesis (and a few that were included but have since been commented out!) have the label given them in the thesis in as a field.
( perl geekiness )
( perl geekiness )