Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^4: Read Some lines in Tera byte file

by Anonymous Monk
on Oct 13, 2010 at 07:08 UTC ( #865028=note: print w/replies, xml ) Need Help??

in reply to Re^3: Read Some lines in Tera byte file
in thread Read Some lines in Tera byte file

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?

  • Comment on Re^4: Read Some lines in Tera byte file

Replies are listed 'Best First'.
Re^5: Read Some lines in Tera byte file
by ikegami (Pope) on Oct 13, 2010 at 08:07 UTC
    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.

        I suppose his lines could all be the same length, or he might have been using the term "line" loosely.

        bhaskar, are your lines/records all the same length? If so, your could calculate the position to which to seek using a simple multiplication.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://865028]
[choroba]: e.g. @array = map $_ . 'hey", @array;
[ovedpo15]: great, thanks!

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2018-03-24 23:35 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (299 votes). Check out past polls.