From: David Alan Black Date: 2002-07-09T05:10:46+09:00 Subject: Re: is there a better string.each? Hello -- On Tue, 9 Jul 2002, Tom Sawyer wrote: > since $/ can't be a regexp, a shorthand was desired to append multiple > successive \n's together in the #each method and unfortunetly '' got the > job. but that left us with no equivalent to the fictional #each_chr, You can do: string.split("") David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav