no-one's given a printf example yet. I think it's a bit easier to read, without all the quotes and temporary variables...
my @array = (
'binary_app=/usr/bin/true',
'config_file=/etc/inetd.conf',
'MOD_NAME="ABC"'
);
printf qq|<input type=text name="%s" value="%s">\n|, split '=' for @ar
+ray;
as mentioned above, you'll need to do something about those double quotes. Here's an example that will just
swap all double quotes to singles...
printf qq|<input type=text name="%s" value="%s">\n|, map {s/"/'/g; $_}
+ split '=' for @array;
---
my name's not Keith, and I'm not reasonable.