Hi List,

I have a hashmap/array construct where i want to lookup data. my current 
lookup looks like that:

foo_uses_a         => [ $foo['bar']['a'], $foo['bar2']['a'] ],
foo_refers_b       => [ $foo['bar']['b'], $foo['bar2']['b'] ];

Is There a way to skip to double reference of $foo and ['a'] or ['b'] per 
line? And make everything a bit nicer?
It is possible to change the construct to a complete hashmap if that helps.


$foo = {
    'bar' => {
      'a'         =>  [
                                '1',
                                '2',
                                '3
                                '4',
                              ],
      'b' =>  [
                                '1',
                                '2',
                                '3',
                                '4',
                                '5',
                                '6',
                              ],
    },
    'bar2' => {
      'a'         =>  [
                                '1',
                                '2',
                                '3
                                '4',
                              ],
      'b' =>  [
                                '1',
                                '2',
                                '3',
                                '4',
                                '5',
                                '6',
                              ],
    },
}

Thanks for help
Simon

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to