http://qs1969.pair.com?node_id=246357

powerhouse has asked for the wisdom of the Perl Monks concerning the following question:

I have a file that I use as a configuration file...

It looks similar to this:
$default_font_family = qq~Arial~; $default_font_color = qq~#000000~; $standout_text_color = qq~navy~; $default_font_size = 2;
Of course that is just an example.

My question is this.

I created a MySQL database, with this format:
id = autoincrement...
name = VARCHAR(100) ex: default_font_size
valu = VARCHAR(255) ex: 2
t = TIMESTAMP for last updated time.

Is there a way I can put the name as a variable that can be used in every page, since it's called in a "required" file, Not in the main script?

Would something like this work...
use CONSTANT $row->{name} => $row->{valu};

Or is there another way to do it, where Perl will use it through out the whole 'site'?

thx,
Richard