@temp = <$file> # file is the file handle $lines = scalar @temp