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

Re^6: How can you sysread an entire file?

by NeilF (Sexton)
on Jan 13, 2006 at 23:11 UTC ( [id://523107]=note: print w/replies, xml ) Need Help??


in reply to Re^5: How can you sysread an entire file?
in thread How can you sysread an entire file?

I never do a chomp... Every record keeps its "\n" (at the end) and is written back out with it again.

I don't plan on splitting the record (variable) while reading - unless there's a good reason. I'll read it all in, then split it on "\n" to put it into an array.
  • Comment on Re^6: How can you sysread an entire file?

Log In?
Username:
Password:

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

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

    No recent polls found