in reply to combining multiple hashrefs

Collect the references in an array and create your own hash from them:
my @configs; push @configs, Config::Auto::parse( $_ ) foreach @files; my $SETS = { map {%$_} @configs };
You could combine the above into a oneliner yet that might obfuscate the code a bit.

Replies are listed 'Best First'.
Re^2: combining multiple hashrefs
by patrickb (Initiate) on Jul 26, 2007 at 23:43 UTC
    Thanks to all those who replied. I appreciate you help. I am planning to implement the above code as it is closest to what I was trying to achieve (in terms of being integrated into the loop). Patrick.