in reply to
Re^4: Read Some lines in Tera byte file
in thread Read Some lines in Tera byte file
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.
Use subroutines for code reuse
Master regular expressions
Write my GUIs with Perl
Abandon CGI in favor of some modern web framework
Put my code in modules
Create CPAN distributions
test and document my code as I write it
Write OOP with or without animal help
Finally switch to a modern Perl style
Create a killer application with Perl
Detoxify from Perl and PerlMonks
Choose another language because Perl is dead
Learn to program for mobile devices
Complete my secret world domination project
None, because the road to hell is paved with good intentions
Results (200 votes),