in reply to Total number of lines for a Zipped file.
open(FILE, "< $filename"); # use < for taint reasons $count += tr/\n/\n/ while sysread(FILE, $_, 2 ** 16); [download]