in reply to Re^4:Can't locate object method "new" via package
in thread Can't locate object method "new" via package

Could explain the out of date version of the module, from the command prompt type: cpan Set::Similarity::Cosine, of if you have cpanm, cpanm Set::Similarity::Cosine. To avoid future module related problems consider using Strawberry Perl over AS.

Replies are listed 'Best First'.
Re^6: Can't locate object method "new" via package
by Ggavazzo (Novice) on Aug 17, 2020 at 20:41 UTC
    THANK YOU... outdated module ... THANK YOU VERY MUCH. Running Build test t/10_similarity.t .......... ok t/10_similarity_cosine.t ... ok t/10_similarity_dice.t ..... ok t/10_similarity_jaccard.t .. ok t/10_similarity_overlap.t .. ok t/author-pod-syntax.t ...... skipped: these tests are for testing by the author

      Glad this seems to have resolved the issue, however I'm not convinced the root cause was the version of the module, the constructor for the prior release is the same as the most recent. Perhaps just a PPM packaging issue?