laziness, impatience, and hubris | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I have a file that I use as a configuration file...
It looks similar to this: 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 In reply to Constant Variables by powerhouse
|
|