in reply to Re: I don't understand error message
in thread I don't understand error message

I have read the manual, and this is not so clear to me. So, my problem may be solved with while loops? I'll attempt that.

Thanks!

Replies are listed 'Best First'.
Re^3: I don't understand error message
by CountZero (Bishop) on Jun 17, 2009 at 09:26 UTC
    So, my problem may be solved with while loops?
    If you are interested in looping through all "next" results, that would be a good start.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

      I should not have to use a loop. I have tested the program locally and it works. When I use it as a subroutine in a larger program is when I run into trouble. I have checked and it is reading in the file. Any ideas?
        You have this in your standalone program:
        my $in = new Bio::SearchIO(-format => 'blast', -file => $maid_dir."/".$maid."aln_hu.aln", -report_type => 'blastn');
        But you have this in your sub-routine:
        my $in = new Bio::SearchIO(-format => 'blast', -file => ">".$maid_dir."\\".$maid."aln_hu.aln", -report_type => 'blastn');
        Could it be that the ">" stops Bio::SearchIO from reading/parsing the file?

        CountZero

        A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James