in reply to Quickly reading the first line of a large number of files...
The only other alternative I can think of is to use a system call, and that is usually longer. I didn't find anything with a quick search on cpan, but someone will corect me if I am wrong.