in reply to dereferencing nightmares...

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

-- Randal L. Schwartz, Perl hacker