Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^4: Use of uninitialized value $cui1 in printby AnomalousMonk (Archbishop) |
on Mar 03, 2017 at 05:12 UTC ( [id://1183507]=note: print w/replies, xml ) | Need Help?? |
I have never used nor even seen the UMLS::Similarity::lch module before and, after a brief perusal, have only the vaguest idea of what it is supposed to do. However, total ignorance should never prevent a righteous monk from offering an opinion! So...
If the value (which should be an array reference) returned to $cu1 by the call to the getConceptList() method in the
Because an undefined $cui1 will become an undefined $concept1 within the call to the getRelatedness() method, you will get a warning like "Use of uninitialized value $concept1 in string eq at UMLS/Similarity/lch.pm ... at the line number associated with the
So your first step is to determine whether $cu1 is undefined or a reference to an empty array. I would do this with a Data::Dumper print debugging statement after the method call: I hope this helps. It seems you've already gone quite a way through the steps I've outlined, but maybe this will help clarify things a bit. Give a man a fish: <%-{-{-{-<
In Section
Seekers of Perl Wisdom
|
|