in reply to term weight

without even waiting till the code tags are added, I see a red flag waving at me ;-)

It's never right to use a set of variables named stemmed_D1words, stemmed_D2words, ... you should go and try to read up about arrays of arrays starting e.g. in perlreftut or perldsc.

Update Fixed link to perlreftut to point directly to www.perldoc.com. Why don't we have a node with that name here on pm like we have for perldsc?

-- Hofmator