From: Salvador Sanjuan Date: 2009-08-27T16:18:35+09:00 Subject: Re: # sign does not work as expected form irb Aldric Giacomoni wrote: > Salvador Sanjuan wrote: >> I have just started Ruby. I have tried to do some exercises usin irb but >> this is what happens if I write the following code msg = "Hello " >> #{name} ": > > Please try this : > msg = "Hello #{name} ". Sorry in my initial post I've made I mistake. I already wrote the code as you are proposing me. The problem is that the # sign goes to the start of the line as soon as I type it, and opens an new line. It must be something to do with the irb and my keyboard configuration but I've just started with ruby and have no idea. Thank you very much. -- Posted via http://www.ruby-forum.com/.