Sorry, I was kind of hoping that having changed how you are assigning to $hostresults 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.
in reply to Re^2: using / accessing nested hash/array references
in thread using / accessing nested hash/array references