in reply to Populating a web template then pulling combining temp files & writing out to replace file

Since your configuration data isn't all that big of an array, I'd say make it more maintainable, robust and readable by putting the data into a hash instead of an array, i.e. for each configuration file line:
my %lookup_param_by; ($name, $value) = split /=/, $_; $lookup_param_by{$name} = $value;
Not sure how you want your form to be laid out, but to print the contents, you could have
foreach (keys %lookup_param_by) { print "$_ $lookup_param_by{$_}\n"; }

-- Burvil

  • Comment on Re: Populating a web template then pulling combining temp files & writing out to replace file
  • Select or Download Code

Replies are listed 'Best First'.
Re^2: Populating a web template then pulling combining temp files & writing out to replace file
by hmag (Acolyte) on Mar 21, 2006 at 09:40 UTC
    Hi again, Many thanks guys - I will & see if I can get something working from your hints.