[Bioperl-l] urgent help with AcePerl

badr al-daihani aldaihani at hotmail.co.uk
Fri Feb 4 14:22:44 EST 2005


Hi
I'm working in windows environment. I use ppm to install AcePerl. however 
when I run the following perl program I get an error says:
Module Ace::RPC not loaded: Can't locate Ace/RPC.pm in @INC <@INC contains: 
C:/Perl/lib  c:/Perl/site/lib .) at (eval 2) line 3.


I appreciate your help in advance

best regards


the program
#!/usr/local/bin/perl
# This example will pull some information on various authors
# from the C. Elegans ACEDB.

use Ace;
use strict vars;

use constant HOST => $ENV{ACEDB_HOST} || 'beta.crbm.cnrs-mop.fr';
use constant PORT => $ENV{ACEDB_PORT} || 20000100;
$|=1;

print "Opening the database....";
my $db = Ace->connect(-host=>HOST,-port=>PORT)
         || die "Connection failure: ",Ace->error;
print "done.\n\n";

my @authors = $db->fetch('Author','S*');
print "There are ",scalar(@authors)," Author objects starting with the 
letter \"S\".\n",
      "The first one's name is ",$authors[0],"\n",
      "His mailing address is ",join(',',$authors[0]->Mail),"\n\n";

my @papers = $authors[0]->Paper;
print "He has published ",scalar(@papers)," papers.\n\n";

my $paper = $papers[$#papers]->fetch;
print "The title of his most recent paper is ",$paper->Title,"\n",
      "The coauthors were ",join(", ",$paper->Author),"\n\n",
      "Here is all the information on the first coauthor:\n",
      (($paper->Author)[0]->fetch->asString);

_________________________________________________________________
Use MSN Messenger to send music and pics to your friends 
http://www.msn.co.uk/messenger



More information about the Bioperl-l mailing list