in reply to Arrays and Hashes woes
%tmpF->{ID}=@tmpA; push(@$fieldobj,%tmpF);
I suppose you need array/hash references (note the \ operator):
$tmpF{ID} = \@tmpA; push(@$fieldobj, \%tmpF);
(Also, the %tmpF->{ID} should be $tmpF{ID})
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Arrays and Hashes woes
by TienLung (Acolyte) on Mar 16, 2009 at 11:30 UTC | |
by almut (Canon) on Mar 16, 2009 at 11:56 UTC |