In a couple of places you have:
print OUTFILE "\t" if ($count > 0);
When you don't have a file handle called OUTFILE. Previously in your code you have:
open (OUT, ">$outfile" ) or die "Cannot open $outfile :$!";
And print quite happily to it later in the code. If you are happy for the output to go to the existing file change the two occurrences of OUTFILE to OUT.
In reply to Re^5: syntax error near print
by marto
in thread syntax error near print
by mariannapac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |