OK, help me here. Here's a small piece of code:
[code]
#!/usr/bin/env ruby
phrase = gets.chomp
l = phrase.length
l.downto(0) {|x|
print phrase[x,1]
}
#puts
[/code]
Notice that 'puts' on the last line is commented. If I leave it
commented, nothing will output, if I uncomment it, then my string will
be displayed. Anyone could enlighten me?
--
Vincent Foley-Bourgon
Email: gnuvince / yahoo.ca
Homepage: http://darkhost.mine.nu:81