On 4/8/06, san <s_sasmal / yahoo.com> wrote:
> how to start ruby programming
> installed a irb.
>
> started a tutorial as in following website
> http://www.crai.archi.fr/RubyLibraryDepot/Ruby/RUBY_Library_Depot.htm
>
> in programming chapter it asks to type and save a coding from text
> editor (done) and then to run in a way
> ruby hello.rb
>
> it tried in the console but no result
> i can type line by line in the irb and getting the result
>
> can anyone help?????
>
> san
>
if i understand your problem right you expected the script to produce
the same output as irb when run with ruby. if you want to see the
result of statements just print them out with p, print or puts.
hth,
-- henon