Hi Monks.

[Please refer to Population of HoAoA based on file contents for full context on this. I'm making a new post here, as the previous node seems to have run its course.]

I've been trying (without success) to work out what's going on regarding some error messages I'm getting. I'm getting the following:

Can't call method "isa" on unblessed reference at /usr/local/share/perl/5.14.2/Bio/PopG +en/Statistics.pm line 901, <GEN0> line 182.

..when I run a basic script that passes a whole chromosome file to the Bio::PopGen::Statistics module. I successfully ran this script previously, and got some statistics back, so I can only assume that in re-running it now and getting errors, I must have changed the original program at some point.

When I run my new, larger script in which I used complex data structures to build 100kb windows (that you guys helped me with in the node I linked to above), I get a different error:

Can't call method "isa" without a package or object reference at /usr/local/share/perl/5.14.2/Bio/PopGen/Statistics.pm line 901.

I'd like to know whether these problems originate with my own code, or with the module that the errors are originating from. If it's on my end, what can I do to fix it?

Help as always will be greatly appreciated.


In reply to Errors when using module by iangibson

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.