I can not see anything wrong with that part of the code, unless some other more Monks can see something wrong.

So, let's see what happens at the root of the problem. Can you also do this change in same file:

for my $oligo_indice ( 0 .. $#{ $self->{oligo_ref} } ) { # INSERT debug code below - this must be around line 474 : for my $j (0 .. $#{ $self->{hd_matrix_ref}->[$oligo_indice] } +){ die "problem with hd_matrix_ref index '$oligo_indice/$j'" +unless defined $self->{hd_matrix_ref}->[$oligo_indice][$j]; } # END insert debug code $hd_sum[$oligo_indice] = List::Util::sum( @{ $self->{hd_matrix_ref}->[$oligo_indice +] } ); }

EDIT: for clearer output, for the moment, can you edit the PREVIOUS debug code to comment-out all print statements? But leave the die there. It should now be:

for my $oligo_indice ( 0 .. $#{ $self->{oligo_ref} } ) { #print "index: $oligo_indice ("; for my $count_indice ( 0 .. $#{ $self->{count_matrix_ref} } ) { if( ! defined $hd_matrix[$oligo_indice][$count_indice] ){ die "prob +lem at [$oligo_indice][$count_indice]" } #print $hd_matrix[$oligo_indice][$count_indice]."," } #print "\n"; }

Can you please edit your last 2 posts and wrap the info you provided within code tags c and /c (i.e. the long output lines and error messages) in <readmore> </readmore> tags.


In reply to Re^5: Use of uninitialized value in subroutine entry at /home/roarce/perl5/perlbrew/perls/perl-5.28.0/lib/site_perl/5.28.0/Seeder/Finder.pm line 476, <IN> line 8192. by bliako
in thread Use of uninitialized value in subroutine entry at /home/roarce/perl5/perlbrew/perls/perl-5.28.0/lib/site_perl/5.28.0/Seeder/Finder.pm line 476, <IN> line 8192. by roarce92

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.