Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Read Some lines in Tera byte file

by Corion (Pope)
on Oct 13, 2010 at 06:53 UTC ( #865022=note: print w/ replies, xml ) Need Help??

Comment on Re^3: Read Some lines in Tera byte file
Replies are listed 'Best First'.
Re^4: Read Some lines in Tera byte file
by Anonymous Monk on Oct 13, 2010 at 07:05 UTC

    because i said file is in tera bytes, so if my file reading position is nth (ex : 99999999) then it will be difficult to parse all lines and consuming time also.

    do we have function in perl like seek?

      Yes. See perlfunc. Also, Google is helpful. If the file is on a remote server, then seek will only work if you can mount the remote filesystem locally.

Re^4: Read Some lines in Tera byte file
by Anonymous Monk on Oct 13, 2010 at 07:08 UTC

    because i said file is in tera bytes, so if my file reading position is nth (ex : 99999999) then it will be difficult to parse all lines and consuming time also.

    do we have function in perl like seek?

      Perl has seek as a builtin. It's not gonna help solve the question you asked us, though.

        It might if he's forgotten to mention that his records are fixed length.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2015-07-08 01:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls