Shouldn't the iterator and a gets() loop give the same result?
| % <test pike -e 'foreach(Stdio.stdin->line_iterator();; string x) write(x+"\n");' | a | % <test pike -e 'string s;while(s=Stdio.stdin->gets()) write(s+"\n");' | a | b
/ Mirar
Previous text:
2002-12-30 10:10: Subject: stdin->line_iterator
It's intentional behaviour...
/ Henrik Grubbström (Lysator)