Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Re: opening a b...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 10963 of 11060
Post > Topic >>

Re: opening a big file

by chas.owens@[EMAIL PROTECTED] (Chas. Owens) Apr 20, 2008 at 08:22 PM

On Sun, Apr 20, 2008 at 5:55 PM, Mr. Shawn H. Corey
<shawnhcorey@[EMAIL PROTECTED]
> wrote:
snip
>  Sadly, even ReadBackwards in no magic bullet.  (And BTW, it should be
>  ReadBackward.)
snip

No, it is File::ReadBackwards.  If you are complaining about the
regionalism "backwards", well I bet I can find you using at least one.

snip
>  It still has to go through the entire file and mark the offsets to the
>  start of every line.
snip

No, you obviously don't know how it is implemented.  It seeks to the
end of the file and reads it into a buffer where it searches for line
endings.  It does not read the entire file until you reach the first
line.

-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.




 1 Posts in Topic:
Re: opening a big file
chas.owens@[EMAIL PROTECT  2008-04-20 20:22:24 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon May 12 20:24:40 CDT 2008.