in reply to thoughts on creating modular perl for web application
What you're inventing is essentially Mason.
In Mason land, your code could live in a <%shared> or <%init>section and your variables would then be available to your HTML in the mason page.
Your global stuff could live in a site-wide autohandler, and you can call methods on other components and different developers could easily pitch in and create new components with a minimal amount of fuss.
Check it out, if you haven't already.
-Any sufficiently advanced technology is
indistinguishable from doubletalk.
In Section
Seekers of Perl Wisdom