From: Ben Tilly Date: 2000-12-18T00:34:44+09:00 Subject: [ruby-talk:7509] Re: question: 'A'..'k' ts wrote: > > >>>>> "B" == Ben Tilly writes: > >B> I would assume that is because both Perl and Ruby use the same >B> string incrementing algorithm. > >pigeon% ruby -e 'p "()".succ' >"(*" >pigeon% > > >pigeon% perl -le '$m = "()"; print ++$m' >1 >pigeon% > Cute. :-) Yes, they are similar but not exactly the same. For the record I have several times tried to use string increment in Perl and each time I wound up finding a clearly better solution which did not use string increment. I am not saying that string increment is useless, but I have not personally found a use for it. Cheers, Ben _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com