On Thu, 13 Feb 2003, Tim Kynerd wrote:

> On Wed, 12 Feb 2003 19:37:35 +0900, Hugh Sasse Staff Elec Eng wrote:
>
> > irb(main):044:0> puts (sprintf "%s", "x\ny") x
> > y
> > nil
> > irb(main):045:0>
> >
> > so  readlines.each {|line|
> >         fields = line.split(/\t/);
> >         fields.each {|field|
> >             puts (sprintf "%s", field)
> >         }
> >         }
>
> So using readlines rather than gets is the key. OK, that makes things
> easier. Thanks!

My point was really the %s, just with a bit of context, but if that
helps....
>
> --
> Tim Kynerd   Sundbyberg (sméÔtan i storstan), Sweden   tim / tram.nu

        Hugh