Subject: | Bug in sub def_as_string |
Term::def_as_string issues
Use of uninitialized value in concatenation (.) or string at
/Library/Perl/5.8.8/OBO/Core/Term.pm line 451.
when a Term doesn't have a definition.
E.g., consider
[Term]
id: PO:0009076
in
http://palea.cgrb.oregonstate.edu/viewsvn/Poc/trunk/ontology/OBO_format/po_anatomy.obo?view=co&content-type=text/plain
on 451 $self->{DEF}->text() isn't defined, so the fix might be to return
undef in that case, or print a warning and return an empty string or
something like that
BR
A
fyi:
$ sudo cpan -D OBO::Core::Term
CPAN: Storable loaded ok (v2.18)
Going to read '/Users/arthurgoldberg/.cpan/Metadata'
Database was generated on Thu, 10 Jun 2010 01:35:27 GMT
OBO::Core::Term
-------------------------------------------------------------------------
(no description)
E/EA/EASR/ONTO-PERL/ONTO-PERL-1.22.tar.gz
/Library/Perl/5.8.8/OBO/Core/Term.pm
Installed: undef
CPAN: undef up to date
Erick Antezana (EASR)
erick.antezana@gmail.com
$ perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=darwin, osvers=9.0, archname=darwin-thread-multi-2level
uname='darwin b02.apple.com 9.0 darwin kernel version 9.3.0: tue aug
12 17:18:07 pdt 2008; root:xnu-1228.5.90~13release_i386 i386 '
uname -a
Darwin KELFER.BIO.NYU.EDU 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15
16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386