Hi

2010/5/10 Une B=E9vue <unbewusst.sein / google.com.invalid>:
> if a use :
> sml =3D ""
> while s =3D STDIN.gets
> =A0sml +=3D s
> end
>
> i get two times what's on STDIN, why ?
> may be something to flush, generally it's stdout hum ?

Are you sure? How did you check that?

irb(main):001:0> sml =3D ""
=3D> ""
irb(main):002:0> while s =3D STDIN.gets
irb(main):003:1>  sml +=3D s
irb(main):004:1> end
1
2
3
=3D> nil
irb(main):005:0> sml
=3D> "1\n2\n3\n"


--=20
Luis Parravicini
http://ktulu.com.ar/blog/