in reply to writing data to executable file

DBM::Deep allows this and those tests pass on Win32 platforms. So, I would say that the answer is "Yes."

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?