This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Error Message About The Owlparser.Pl

I am new to use Perl. My purpose is to convert one owl file into obo. step 1. I set up perl environment and I am sure that it can work now. step 2. I download ONTO-PERL-1.31 and copy lib to c:/Perl64/lib step 3. run it.
owl2obo.pl a.owl > a.obo

1st error message shows that: " XML::Parser" undefined. So I added use XML::Parser. 2nd error message shows that: Can't call method "name on an undefined value at c:/Perl64/lib/OBO/Parser/OWLParser.pm line 502.

Sorry that I never use Perl. I try to find and to understand the syntax of Perl but it is too difficult for me at this moment. Could someone please help me to fix the minor problem?

Thank you in advance!

Eunice

perl parser

1 answer

You need to install the modules that your perl script uses. This is accomplished through CPAN.

sudo perl -MCPAN -e shell
> install XML::Parser

If there are any other modules the script depends on you can install them in the same fashion. Don't modify the perl script in any way.

EDIT: I missed the information about this running on Windows. What perl distribution are you using? Activeperl? If so, then you may want to get the XML::Parser module, from the command prompt run:

ppm install XML::Parser

Log in to answer this question.