From: "Erik Bågfors" Date: 2002-04-03T20:01:58+09:00 Subject: Re: Newbie Questions On Wed, 2002-04-03 at 12:55, ghost wrote: > Apologies if there is a FAQ I missed or this is out of line here, but I > have a couple of Ruby questions if you please: > 1) Is there any definitive online tutorials available? > (I've been to IBM, RubyCentral, Rubycookbook, etc) I'd recommend the pickaxe-book. You'll find it at www.pragmaticprogramer.com I _think_ > 2) I'm coming from PHP, so this everything is an object kind of throws me. > How would you go about pulling info from STDIN and storing that in a > variable? Does that then become an object in itself? > Yes.. normally a string-object : [bagfors@detrius]$ ; irb irb(main):001:0> str = gets hello world "hello world\n" irb(main):002:0> p str "hello world\n" nil irb(main):003:0> p str.type String nil /Erik -- Erik B�gfors | erik@bagfors.nu Supporter of free software | GSM +46 733 279 273 fingerprint: 6666 A85B 95D3 D26B 296B 6C60 4F32 2C0B 693D 6E32