in reply to 'undef' in the matrix instead of values!!!
I'm not seeing what kind of package $Measure is, as it appears you're grabbing it from @ARGV. Regardless, you should see what this returns, because I think it's the key.
If you look too closely, the answer will chomp you in the rear.$Measure->getRelatedness("hotdog\n#n#1", "hamburger\n#n#1");
--
[ e d @ h a l l e y . c c ]
In Section
Seekers of Perl Wisdom