in reply to Passing variables to another script (theory)

Do it like DamnDirtyApe so nicely explained it. But for persistence I'd recommend Storable.

Assuming your configuration information is stored in admin.cgi in a hash %config, it's as easy as:

use Storable; store \%config, 'config.file'; # for reading back $hashref = retrieve('file');
straight from the docs of Storable.

-- Hofmator