http://qs1969.pair.com?node_id=592639


in reply to dynamically generated array variable

Can you convert the config file to be of the form:

$config{<hostname>} = [ {a => value1, b => value }, {a => value, {b=>v +alue} ]
or
%config = ( <hostname> => [ {a => value1, b => value }, {a => value, {b=>value} + ] );
instead? It'll be much simpler to handle this way... it'll also be easier to handle FQDNs, too, if ever needed (just put the hostnames in quotes).