[Bioperl-l] typo in perldoc of get_replaced_terms

Peng Yu pengyu.ut at gmail.com
Fri Jun 4 19:58:09 UTC 2010


Hi,

I think that there is a typo in the document of get_replaced_terms.
The following is from perldoc Bio::DB::EUtilities.
$eutil->get_replaced_term should be $eutil->get_replaced_terms, right?
(Note 's').


   get_replaced_terms
        Title    : get_replaced_terms
        Usage    : my $term = $eutil->get_replaced_term
        Function : returns array of strings replaced in the query
        Returns  : string
        Args     : none
        Notes    : only applicable for espell


Also, I tried the following code. I'm not sure I got the following
error. Would you please let me know what I'm wrong?

$ cat ./get_replaced_terms/main.pl
#!/usr/bin/env perl

use strict;
use warnings;

use Bio::DB::EUtilities;

my $factory = Bio::DB::EUtilities->new(-eutil => 'espell',
                         -term => 'brest cnacer',
                         -email => 'mymail at foo.bar'
                       );

print "get_replaced_terms: ",$factory->get_replaced_terms,"\n";

$  ./get_replaced_terms/main.pl
Use of uninitialized value in print at ./get_replaced_terms/main.pl line 13.
get_replaced_terms:


-- 
Regards,
Peng



More information about the Bioperl-l mailing list