I have never used these modules, and I don't have them installed, but the documentation for
WordNet::Similarity indicates that you might be able to get information about potential errors that have occurred:
my ($error, $errorString) = $measure->getError();
die $errorString if $error;