# load values into %config, template into $string, then... 1 while $string =~ s/\[%\s*(\S+)\s*%\]/$config{$1}/; #### # load values into e.g. $CONFIG::variable1, etc., then... $string = eval "package CONFIG;\n<