in reply to Proper way to create 'globals'

You have two solutions to your problem. Neither is preferable to the other - both work equally well. As I'm the author of both Excel::Template and DBM::Deep, I feel that each is useful in different situations.

BUT ... you really need to use one of them. Messing around with globals is bad juju. That you're asking here is a sign that you feel it smells wrong. That's the sign of a software journeyman. To demonstrate mastery, you need to learn why it smells and how to avoid it.


My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?