in reply to Reading fixed length records
Always results in 10, for files of at least 10 bytes. Are you sure your file is 2K long? That's a mighty-big record.$/=\10; open(F, "foo.txt") || die; $rec=<F>; print length $rec, "\n"; close(F);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Reading fixed length records
by tigervamp (Friar) on May 25, 2001 at 17:37 UTC |