in reply to Print array, splitting into 2 strings
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...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;
printf qq|<input type=text name="%s" value="%s">\n|, map {s/"/'/g; $_} + split '=' for @array;
|
|---|