in reply to Reading a file with 8kB long lines
$ perl -e 'for (1 .. 10) { print("A" x (9000 + $_) . "\n") }' > fil +e.txt $ perl -le 'open FOO, "file.txt"; print length $_ for (<FOO>);' 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011
What version of Perl are you running? What OS? Can we see the real code, please?
-sam
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reading a file with 8kB long lines
by gri6507 (Deacon) on Jun 08, 2007 at 21:12 UTC | |
by FunkyMonk (Bishop) on Jun 08, 2007 at 21:28 UTC | |
by BrowserUk (Patriarch) on Jun 08, 2007 at 21:40 UTC | |
|
Re^2: Reading a file with 8kB long lines
by blazar (Canon) on Jun 09, 2007 at 15:51 UTC |