$ 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
In reply to Re: Reading a file with 8kB long lines
by samtregar
in thread Reading a file with 8kB long lines
by gri6507
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |