in reply to one script, not twelve nearly identical ones!

You should consider using one of the many XML modules available in CPAN. From their, you can create some sort of data structure that contains your tags and the specific details that make it different from the generic implementation.
  • Comment on Re: one script, not twelve nearly identical ones!