Help for this page

Select Code to Download


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