in reply to Re: 'undef' in the matrix instead of values!!!
in thread 'undef' in the matrix instead of values!!!

tx for reply. I tried to print S#words before and it gave me 3 coz i have only 4 words morever my loop works as i checked before. relatedness shouldnt give any undef value. thats what i wonder. atleast for two similar values it shoudlnt.
  • Comment on Re^2: 'undef' in the matrix instead of values!!!

Replies are listed 'Best First'.
Re^3: 'undef' in the matrix instead of values!!!
by apl (Monsignor) on Feb 06, 2008 at 14:07 UTC
    I'd debug (or put prints) in sub similarity. Does $obj get a value other than undef? Does $simi?