Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: using / accessing nested hash/array references

by tspfwj (Initiate)
on Jan 18, 2011 at 23:40 UTC ( [id://883016]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://883016]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2024-03-28 10:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found