in reply to Re: No output to screen or output file
in thread No output to screen or output file

Use of uninitialized value in string eq at trial1.pl line 128, <IN> line 1767.

I removed the single quotations and get the following error. When I put the quotes back in, the program succesfully runs but no output is printed to my output file.

  • Comment on Re^2: No output to screen or output file

Replies are listed 'Best First'.
Re^3: No output to screen or output file
by frozenwithjoy (Priest) on Jul 25, 2012 at 01:33 UTC
    Sounds like your input file is 1766 lines long and you are trying to read in the next line after you've already reached the end. Can you show the code where you read in your file?

      Here is my code for reading in the input file

      open (FILTER,"$filter_file"); my @filter; <FILTER>; # read one line from the file [HEADERS] while (<FILTER>) { # read other lines chomp; # remove "\n" from the end of the line push @filter,[(split /\t/,$_)]; # create an array of the line +by s$ } @filter = sort { $a->[5] <=> $b->[5] } @filter; # sort the array #--------------------------------------------------------------------- +----$ #PRINTS REFERENCES TO ARRAY FROM LEAST TO GREATEST REGARDING 'ORDER' C +OLUMN print Dumper \@filter; #### For Debugging Purposes