Hi,
When I try to use complex data structures I get an error saying
Use of uninitialized value in string at C:\Documents and Settings\deepm\My
Documents\practice.pl line 29, line 1.
The line of code is as follows:-
for ($i=0;$i<=$#terms;$i++)
{
$wordlistref->{$terms[$i]}->{"postingsref"}->{"
Deepak Mallya wrote:
> Hi,
> When I try to use complex data structures I get an error saying
> Use of uninitialized value in string at C:\Documents and
> Settings\deepm\My Documents\practice.pl line 29, line 1.
>
> The line of code is as follows:-
> for ($i=0;$i<=$#terms;$i++)
> {
>
>
Michael,
thanks a lot Michael I figured it out using the Data
Dumper..Actually the last attribute wasnt initialised..I changed the code as
follows.
for ($i=0;$i<=$#terms;$i++)
{
$wordlistref->{$terms[$i]}->{"postingsref"}->{"doc"}->{"d1"}->{"termfreq"}++;
}
print
$wordlistref->{$terms[