in reply to Can't coerce array into hash
Basically, after line 51 you have an single entry array [$n-name] in:
Which is fine, but this means, if you call:$judge{$j_name}->{Nominee}
you get [$n-name]. And you MAKE that call, in line 52, when you say:$judge{$j_name}->{Nominee}
So you're turning around and saying that [$n-name] is also %Scores. Hence the error.$judge{$j_name}->{Nominee}->{Scores}
Solution:
51 push @{$judge{$j_name}->{Nominee}->{$n_name}->{Scores}}, $mentor,$ptcare,$clinres;
OR
51 push @{$judge{$j_name}->{Nominee}->{$n_name}}, $mentor,$ptcare,$clinres;
Hope I got that right.
Cheers
Sam
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Can't coerce array into hash
by Anonymous Monk on Sep 24, 2003 at 17:37 UTC |