in reply to Re^2: array or array ref as variable
in thread array or array ref as variable
( Note the update:  @{$arr_hash{$_}} = collectData($_, $CFG{$CFG{ uc $_}});)
I reckon the calling program can go like this:
(not tested)my (@fw, @vrf, @vlan, @portchannel); my %arr_hash = (fw=> \@fw, vrf=> \@vrf, vlan =>\@vlan, portchannel => +\@portchannel); foreach (keys %arr_hash) { @{$arr_hash{$_}} = collectData($_, $CFG{$CFG{ uc $_}}); }
Helen
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: array or array ref as variable
by Hossein (Acolyte) on Jun 28, 2013 at 08:12 UTC | |
by HelenCr (Monk) on Jun 28, 2013 at 09:30 UTC | |
by Hossein (Acolyte) on Jun 28, 2013 at 10:57 UTC |
In Section
Seekers of Perl Wisdom