Andrew C.
6/8/2006 7:05:00 AM
"Tim Hunter" <cyclists@nc.rr.com> wrote in message
news:85Ihg.15702$Qg.7779@tornado.southeast.rr.com...
> arose wrote:
>> How to I mix variables and strings together.
>>
>> In vb I use the & for example.
>>
>> firstthree="abc"
>> firstsix=firstthree & "def"
>>
>
> firstthree="abc"
> firstsix=firstthree + "def"
Also, just for fun, try 'puts "123" * 3'. Initially, the result from this
struck me as odd, but in a good way.
Learning Ruby, I'm very much reminded of when I first learned C (which,
somewhat worryingly, is rapidly coming up for 20 years ago), and, compared
to what I already knew at the time (Pascal and various BASICs), C felt
slick, curious and sublime, not to mention, fun to work with.
A.