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

Thank you; Similarity and Cosine $ VERSION = '0.026'; Yes, that's exactly the code. Now with windows 10. 64 bits. Interesting that when it was with windwos 7 it worked.
  • Comment on Re^2: Can't locate object method "new" via package

Replies are listed 'Best First'.
Re^3: Can't locate object method "new" via package
by Corion (Patriarch) on Aug 17, 2020 at 17:37 UTC

    Does loading Set::Similarity work?

    Have you made sure that you are actually running the code you've posted?

    What else did change except Windows? Did you reinstall Perl?

      Yes, I reinstalled perl64. perl -v This is perl 5, version 24, subversion 3 (v5.24.3) built for MSWin32-x64-multi-thread (with 1 registered patch, see perl -V for more detail) Yes. This is the Code.
Re^3: Can't locate object method "new" via package
by marto (Cardinal) on Aug 17, 2020 at 17:49 UTC

    How did you install this module?

      Perl Package Manager

        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.