Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^2: Estimate line count in text file

by xaprb (Scribe)
on Jul 18, 2008 at 13:16 UTC ( #698612=note: print w/replies, xml ) Need Help??

in reply to Re: Estimate line count in text file
in thread Estimate line count in text file

Sure. I saw all of these. (Though I do not see any reply by davorg). They are all exact, not estimated. The key here is "estimated because the file is Very, Very Large." Reading the whole file may be unacceptable.

Replies are listed 'Best First'.
Re^3: Estimate line count in text file
by marto (Bishop) on Jul 18, 2008 at 13:24 UTC

    My mistake, I was referring to davidrw's reply. I would suggest (if you have not already done so) benchmarking their Tie::File solution with some 'large' files, since peoples definition of what constitutes a large file differs :)


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://698612]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2017-07-28 03:40 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (424 votes). Check out past polls.