in reply to Re^2: find the continuity in the data file
in thread find the continuity in the data file

"Use of uninitialized value" is a warning, not an error. Line 31 of your posted program is
close INFILE;
so you are probably running a different version of the code.
Another suspicious thing is your open: do you really prepend a space to the argument?