Hi, How to get first line, last line and no of lines in a file..... is there any perl functions available for that ? right now what i am doing is
open file while (<FH> { $lines++; } close(FH) This operation is expensive.. suppose, if file have millions of records, it will take more time.... I think there should be some functions to get those.. i appreciate u r help.... Thanx in advance -Madhu __________________________________________________ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]