Hi I am new to perl. I am trying to read all the lines of a file,which is a result of an mysql query.But the last line can not be read by using foreach command.This problem happens only when we use mysql query and foreach together.Otherwise there is no problem with foreach.I am sending my code