Can't locate XML/DOM.pm in @INC (you may need to install the XML::DOM module)
I think the full text of your error message is this
Can't locate XML/DOM.pm in @INC (you may need to install the XML::DOM module) (@INC contains: ...
There's a very good clue there that you may need to install the module, which you can do using cpanm XML::DOM
or cpan XML::DOM
. If neither of those options work for you then you should ask another question
I encountered an issue where the script ROUGE-1.5.5.pl mentioned this version of perl: #!/usr/bion/perl which happened to be an old one 5.18.2
So cpan install XML::DOM
was installing the module for the version 5.28.1 and therefore I was still getting the same error with the module installed.
Solution: Add this to the script: $ nano ROUGE-1.5.5.pl
Add the current version of perl that has the module (in my case was #!/Applications/anaconda3/bin/perl
)
To find out which version of perl you are using and you updated with XML::DOM
, run:$ which perl