Oh, and I am programming in 1.8?
Is 1.9 a big release compared to 1.8?

If I do like this in my for loop:

---
k=o
for i in (0...s.length)
  c = s[i,k]
  puts c
  c = ?c
  puts c
  k=k+1
end
---
I get this in terminal:

---

$ ruby caesarCiper.rb
a
99
cd
99

99

99

99
ddddd

---

I don't think my s[i,k] is working properly.
Does "i" get added +1 for every loop when doing like this?

-- 
Posted via http://www.ruby-forum.com/.