in reply to Re: using / accessing nested hash/array references
in thread using / accessing nested hash/array references

I changed the line to
$hostresults[0] = \@{&get_list()};
and I am still receiving the scalar error. I have experimented with initializing like
my @hostresults = (\@result1,\@result2); #or my @hostresults = (@result1,@result2);
but I still received errors. My attempts would have been with the same context though. The right side sub returns the array of hash references which is why I left in the line above in my original example. My hope was to show what was happening outside of my context or syntax errors. Thank you

Replies are listed 'Best First'.
Re^3: using / accessing nested hash/array references
by state-o-dis-array (Hermit) on Jan 19, 2011 at 00:03 UTC
    Sorry, I was kind of hoping that having changed how you are assigning to $hostresults[0] that you might take that as a clue to look at how you are accessing it. Anonyrnous Monk provides a valuable suggestion in referring you to Data::Dumper. Also, have you taken time to check out the links I provided? I think that they will be helpful to you.