in reply to dereferencing nightmares...
I have an arrayref of hashrefs. One of the hashrefs is itself an arrayref, ie:Nope. Already off the track there. You've got an array name in a scalar context on the right. Therefore, a length.$page_graphic->[$i]->{array} = @array;
OK so far, but now I want to derefence the array for a join, but:Well, my guess is that eventually, you'll want this:join '', @$page_graphic->[$i]->{array}; # gives num elements
join '', @{$page_graphic->[$i]->{array}};
Every other guess provides the wrong answer.Just the odd-numbered guesses? {grin}
-- Randal L. Schwartz, Perl hacker
|
|---|