Deepak Mallya wrote:
> Michael,
> with no variable but just constants inside(I still get the
> same error) I am actually trying to build a complex data structure on
> the fly with dynamic values..what do I need to do?.
What line is the warning coming from? The line where you're doing the increment?
Or the line where you're printing?
If you have doubt as to what your data structure looks like, use Data::Dumper to
peak at it.
> for ($i=0;$i<=$#terms;$i++)
> {
>
> $wordlistref->{$terms[$i]}->{"postingsref"}->{"doc"}->{"d1"}->{$termfreq}++;
> }
> $wordlistref->{$terms[0]}->{"postingsref"}->{"doc"}->{"d1"}->{$termfreq};
print Data::Dumper::Dumper($wordlistref);
--
Michael Peters
Developer
Plus Three, LP
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.