in reply to Re^3: Reading and Writing Perl Config Files
in thread Reading and Writing Perl Config Files

With the line:
$comp->reval($config_file)
you are trying to evaluate the file name of the config file. You'd have to open it You want to use rdo instead of reval (or first read the file into a string).