Some (probably stupid) questions, since I cannot see any obvious problems right away:
- How long are the lines in your input file?
- Have you set the input record separator ($/) to something not matching your end-of-line string or undef'd it?
- Is the <br> line really in your script and should it be?
HTH,
Joost.