in reply to Error opening file handle within while loop

Where do you get the syntax error, and what does it say exactly?

  • Comment on Re: Error opening file handle within while loop

Replies are listed 'Best First'.
Re^2: Error opening file handle within while loop
by rjc33 (Sexton) on Feb 10, 2016 at 12:55 UTC
    HI, thanks for your time. The syntax error was for the line "open (IN2, "m2.gff") or die;" but as was pointed out I was missing a ; on the preceding line. Now I get the error message: Use of uninitialized value $columnsA2 in addition (+) at phastCons_multiples_ids3.pl line 19

      I would then look at the values in @columnsA, and/or how @columnsA gets filled.

        $columns (or $columnsA, apologies this is just a discrepancy between versions of the script I'm testing) is filled as I expect if I print the array, however when I try to print a single column as a string it says it is uninitialized - I'm really not sure why this might be.