<IN> in scalar context will only return one line per call, while in list context it will return a list of all the (remaining) lines in the file. Therefore, replace
withprint <IN> , "<br/>\n" ;
print map "$_<br/>\n", <IN>;
In reply to Re: How to print a file line by line?
by Anonymous Monk
in thread How to print a file line by line?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |