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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.