Wouldn't it be just as simple to have the configuration module return a hash reference via a function? That way, the program is somewhat easier to read:
use strict;
use My::Config 'GetConfig';
my $config = GetConfig();
print "Content-type: text/plain\r\n\r\n";
print "My url docs root: $config->{url}{docs}\n";