Doubt in References and complex datastructures

2006-12-11 Thread Deepak Mallya
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"}->{"

Re: Doubt in References and complex datastructures

2006-12-11 Thread Michael Peters
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++) > { > >

Re: Doubt in References and complex datastructures

2006-12-11 Thread Deepak Mallya
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[