in reply to array or array ref as variable
You seem to have almost answered your own question in the asking of it, so maybe a different question is in order? What are you trying to achieve? That is, what is the big picture objective? Maybe you'd be better using a hash of arrays or, more likely, an array of hashes, or even an array of objects to manage your data?
my @everything = (\@fw, \@vlan, \@vrf, \@more); for my $arrayRef (@everything) { theSub(@$arrayRef); }
seems to answer your immediate issue.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: array or array ref as variable
by HelenCr (Monk) on Jun 28, 2013 at 07:00 UTC | |
by Lawliet (Curate) on Jun 28, 2013 at 11:08 UTC | |
by HelenCr (Monk) on Jun 28, 2013 at 19:50 UTC | |
Re^2: array or array ref as variable
by Hossein (Acolyte) on Jun 28, 2013 at 07:09 UTC | |
by HelenCr (Monk) on Jun 28, 2013 at 07:32 UTC | |
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 |