Hi
I was going through the ruby_basics.pdf file. Page 28 in the pdf shows
some examples on using escape sequences.
I tried them in Netbeans IDE 6.5.1 and found that backspace and
carriage return are not giving the desired output.
My statements are
   puts "Hello\bWorld"
   puts "Hello\rWorld"

And i expected to see
HellWorld
Hello
World

But the actual outcome was
Hello World
HelloWorld

Wondering whats wrong!!!

Thanks
Shree

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "ruby-on-rails-programming-with-passion" group.
To unsubscribe from this group, send email to
ruby-on-rails-programming-with-passion-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ruby-on-rails-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to