http://qs321.pair.com?node_id=738371


in reply to Re^2: Automatically add all defined functions to your @EXPORT
in thread Automatically add all defined functions to your @EXPORT

The do is to introduce a new scope during an assignemnt. "not work for me" is rather vague - you want to elaborate, possibly with the actual error message?

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?