in reply to dereferencing hash within a hash within an array
Update:Ignore this! Its a complete red-herring bought about by brain-fade.
if ($data[$x]->{'anaglyph'} eq "Yes"){ $data[$x]->{'anaglyph'}="checked"; }
To clarify: If the array element $data[$x] contains a valid reference to a hash, then you need dereference that using -> to indicate that this is the case.
Examine what is said, not who speaks.
The 7th Rule of perl club is -- pearl clubs are easily damaged. Use a diamond club instead.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: dereferencing hash within a hash within an array
by sauoq (Abbot) on Jan 10, 2003 at 23:20 UTC |