you'd use $main::string or &main::function ... you get the idea...
You could always make the main into a package. Nothing keeps you from doing that either. In fact if you plan on reusing any of the code anyways you might just want to do that for sanity sake.
Comment on Re: Who's who in interpackage global vars