$count = `wc -l < $file`; if($x==$count); { chomp($line); }