Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: Re: split and sysread()

by dws (Chancellor)
on Apr 18, 2003 at 23:59 UTC ( [id://251586]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: split and sysread()
in thread split and sysread()

The issue with the above is it still reads in the file one line at a time, right?. That's what I am trying to get away from.

But in order to pick out the right fields, you have to know where a line starts and stops. There's no getting around that.

You can either use sysread() to pull stuff in by blocks, then juggle blocks to handle lines that span blocks, or you can uses Perl's line-by-line IO. Your call.

Log In?
Username:
Password:

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

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

    No recent polls found