in reply to using / accessing nested hash/array references
are not equivalent. You have encountered a context issue, the first line above is list context, the second is scalar, in other words, $hostresults[0] is not an array as I think you are expecting. I think what you would want to do is change the second line to something like:@results = &get_list(); $hostresults[0] = &get_list();
Then $hostresults[0] is a reference to your first data set.$hostresults[$i] = \@results;
You might want to look at perldsc and perlref
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: using / accessing nested hash/array references
by tspfwj (Initiate) on Jan 18, 2011 at 23:40 UTC | |
by state-o-dis-array (Hermit) on Jan 19, 2011 at 00:03 UTC |