[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: scrambler one-liner

Weirich, James

9/16/2003 3:21:00 PM

> It seems there is no need to treat the case w.size > 1
> specially because the
> slice gives an empty string for sizes == 1 or 2 and
> everything seems to work
> right AFAICT.

Ahh. I tried w[1...w.size-1] rather than w[1..w.size-2]. It seems there is
a difference in behavior. Interesting.

--
-- Jim Weirich / Compuware
-- FWP Capture Services
-- Phone: 859-386-8855