Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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 (Monsignor)
on May 26, 2020 at 08:58 UTC ( [id://11117270]=note: print w/replies, xml ) Need Help??


in reply to Re^4: 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.
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.

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.

  • Comment on 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.
  • Select or Download Code

Replies are listed 'Best First'.
Re^6: 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 (Acolyte) on Jul 14, 2020 at 19:15 UTC

    Sorry for the delay. I could run the Perl module with some files and I was working on that. With anothers I'm having the same problem of this issue. I add your suggestion for the EDIT part in 'Finder.pm' file and I recieved the following error comments.

    I really appreciate your help, thanks in advance. Rocío

      Hi Rocio,

      there must be some tiny bug like a missing bracket somewhere? Anyway, it is trivial debugging code. But right now I can't remember what was the problem and I will not start looking at it again. Perhaps another Monk here can help you or the author of said module. If you are willing to share the data causing the problem it will be better. If you can't find anyone to help you, you can post an offer to https://jobs.perl.org

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11117270]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-25 19:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found