Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: How to print a file line by line?

by Anonymous Monk
on Jul 04, 2000 at 03:28 UTC ( [id://20963]=note: print w/replies, xml ) Need Help??


in reply to How to print a file line by line?

<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

print <IN> , "<br/>\n" ;
with
print map "$_<br/>\n", <IN>;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://20963]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-25 12:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found