in reply to global variables vs global hash

There's already a module that does that. See vars::global.