in reply to dynamically generated array variable
Can you convert the config file to be of the form:
or$config{<hostname>} = [ {a => value1, b => value }, {a => value, {b=>v +alue} ]
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).%config = ( <hostname> => [ {a => value1, b => value }, {a => value, {b=>value} + ] );
In Section
Seekers of Perl Wisdom