in reply to Re^2: Spot the Bug
in thread Spot the Bug

The other thing is that <STDIN>. It does not return in the normal way, which is expected base on the code, as line break has been reset to "\n.\n". But you can easily get around by entering "\n.\n" (<Enter>.<Enter>) to continue and inspect the next record.

Any way, my first reply still reveals a bug, if the program is required to handle empty record.