Running your code through PerlTidy may help:
my %myarray = ( vlans => { [ { number => "112", name => "JP-WIRELESS", description => "JP-WIRELESS", ip => "192.168.207.1", mask => "255.255.255.0" }, { number => "2113", name => "JP-IDF1-DATA", description => "JP-IDF1-DATA", ip => "10.136.113.1", mask => "255.255.255.0" } ] } );
Notice that PerlTidy is confused about the nested hash (it has aligned the {} for it with the [] for the nested array). That's a strong clue, especially when combined with the 'Odd number of elements in anonymous hash ...' warning you get when using strictures, that something isn't cosher with the nested hash.
Maybe you don't want the nested hash at all? Or maybe you are missing the keys for it and don't want the nested array?
In reply to Re: Creating Multidimensional Hashed Arrays?
by GrandFather
in thread Creating Multidimensional Hashed Arrays?
by spickles
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |