Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by NeilF (Sexton)
on Jan 13, 2006 at 23:11 UTC ( #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? | Other CB clients
Other Users?
Others lurking in the Monastery: (1)
As of 2022-05-18 04:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (68 votes). Check out past polls.

    Notices?