Error Message About The Owlparser.Pl
1
0
Entering edit mode
11.7 years ago

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 • 2.2k views
ADD COMMENT
1
Entering edit mode
11.7 years ago

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
ADD COMMENT

Login before adding your answer.

Traffic: 2266 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6