Did you write this subroutine yourself? If so, you should provide the code. If not, you should explain precisely and in detail where it comes from.
output:
2
We'll assume that's from the only print statement shown which means that read_file($errorLog); isn't doing what you expect. You will need to fix your read_file() subroutine.