in reply to Moving variables to config file

You could have a look at Config-Simple
It uses less memory than YAML for simple use

HTH,
PooLpi