My understanding is that $::Config is equivalent to $main::Config, and is necessary to make the variable global, so that it's available to any other modules that are "use"-d by the main.cgi module.
The above code works. That's what I meant by having to resort to trial and error.
I remember having to do some experimention to come up with that. But I'll play around with it some more.