cLive ;-) has asked for the wisdom of the Perl Monks concerning the following question:
I have an arrayref of hashrefs. One of the hashrefs is itself an arrayref, ie:
OK so far, but now I want to derefence the array for a join, but:$page_graphic->[$i]->{array} = @array;
Every other guess provides the wrong answer.join '', @$page_graphic->[$i]->{array}; # gives num elements
Can someone point out what I'm doing wrong here? Is my assignment wrong in the first place?
Hmmm...
cLive ;-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: dereferencing nightmares...
by merlyn (Sage) on Jan 08, 2002 at 05:24 UTC | |
|
Re: dereferencing nightmares...
by Zaxo (Archbishop) on Jan 08, 2002 at 05:27 UTC | |
by cLive ;-) (Prior) on Jan 08, 2002 at 09:20 UTC | |
by Anonymous Monk on Jan 08, 2002 at 20:37 UTC | |
by Anonymous Monk on Jan 08, 2002 at 20:39 UTC | |
by dmmiller2k (Chaplain) on Jan 09, 2002 at 00:15 UTC | |
by cLive ;-) (Prior) on Jan 09, 2002 at 01:38 UTC |