From: John Date: 2006-04-11T00:07:27+09:00 Subject: Re: a newbie. not getting run a script san wrote: > thanks henon > > but actually i have tried with the puts... > i suppose i am not giving a command to invoke the program. let me > explain: > > i have installed the irb.. somewhere in c:programfiles.... > run irb from start menu > in text editor i type out a program *.rb > now where do i need to save OR > how do i give a proper path to run the *.rb file > > thanks in advance > san Pass in a -r to either irb or ruby to load that module: ruby -r yourmodule.rb or irb -r yourmodule.rb Using the ruby command will load it non-interactively, so it'll run just like a normal script. That's if I understand your issue correctly. -- Posted via http://www.ruby-forum.com/.