$/=\10; open(F, "foo.txt") || die; $rec=; print length $rec, "\n"; close(F);