On Jan 19, 2008 11:35 AM,  <[EMAIL PROTECTED]> wrote:

> Is there a quick and easy way that I can get the last key from a file.

Do you have answers to Randal's questions when you asked this question
the other day, or are you changing the problem?

    http://www.nntp.perl.org/group/perl.beginners/2008/01/msg98242.html

Perhaps you want to seek() to some point near the end of the file,
maybe even the point where your program left off last time, then read
from there. That may be quick, quicker than reading the whole file,
and I don't think I'd necessarily call it easy; but it sounds like
what you're looking for. seek() is documented in the perlfunc manpage.

Good luck with it!

--Tom Phoenix
Stonehenge Perl Training

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to