HI all, Is it possible to read only part of file in perl?
At this moment I have script similar to: open (FH, file"); @FH = <FH>; foreach $line(@FH){ processing linebyline } close FH; However, I only need certain part of file only to be read (let say beginning 20 lines). Above method will be taking lot of time to read file up to 5mb in size (.ps file), so how do I this in perl? Any module or other slick way? So far my solution is using system call using unixs head n 20. Cheers, TP -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/