in reply to Mistake in data structure use?
You are preceding the hashes in the array with their indexes... this is almost certainly not what you want. in square brackets items are assigned their array index by position... first is index 0, second is index 1, etc...'school' => [ 0, { 'graduation_date' => undef, 'school_name' => undef, 'school_type' => 'school' }, 1, { 'graduation_date' => undef, 'school_name' => undef, 'school_type' => 'school1' } ],
it should look like
'school' => [ { 'graduation_date' => undef, 'school_name' => undef, 'school_type' => 'school' }, { 'graduation_date' => undef, 'school_name' => undef, 'school_type' => 'school1' } ],
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Mistake in data structure use?
by McLogic (Initiate) on Dec 01, 2006 at 22:34 UTC | |
by jonadab (Parson) on Dec 01, 2006 at 22:40 UTC | |
by McLogic (Initiate) on Dec 01, 2006 at 23:08 UTC | |
by chromatic (Archbishop) on Dec 01, 2006 at 23:29 UTC | |
by McLogic (Initiate) on Dec 04, 2006 at 16:31 UTC |