in reply to My globals are visable; but undef'ed
The reason is that calling sections of code "components" doesn't actually help you much unless the interfaces between those components are fairly minimal and well-defined. Communicating through random global variables results in complex and poorly defined interfaces.
Oh, and before you go too far in breaking this up you should really look at Exporter. The ability to import functions into a namespace can go a long way towards making this kind of refactoring a lot less painful to do.
|
|---|