in reply to Reduce CPU utilization time in reading file using perl

May be you'll find useful to read about iterators in precious book High Order Perl.
On CPAN there is a module too: Iterator
there are no rules, there are no thumbs..