So, as you didn't post any details, let me make some assumptions. You have a directory tree that looks like this:
C:/Documents and Settings/Administrator/Desktop/Code/BioPerl/testscrip +t.pl C:/Documents and Settings/Administrator/Desktop/Code/BioPerl/ExecuteCo +nfigureBioMartBuilder.pm
But looking at the code, there are some errors in it. First of all, the code is invalid, because it uses qw() and you have a path with whitespace in directory/filenames. Change that to:
use lib 'C:/Documents and Settings/Administrator/Desktop/Code/BioPerl/ +';
Second, if you use lib, Perl will search modules in and below that directory. And the use statement:
use bin::ExecuteConfigureBioMartBuilder;
tells Perl to go looking for a file bin/ExecuteConfigureBioMartBuilder.pm. And it can't find that. So, change your tree to look like the following for example:
C:/Documents and Settings/Administrator/Desktop/Code/BioPerl/testscrip +t.pl C:/Documents and Settings/Administrator/Desktop/Code/BioPerl/bin/Execu +teConfigureBioMartBuilder.pm
Then, Perl should find the module.
In reply to Re^4: beginner - can't load a module
by Corion
in thread beginner - can't load a module
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |