[#1816] Ruby 1.5.3 under Tru64 (Alpha)? — Clemens Hintze <clemens.hintze@...>

Hi all,

17 messages 2000/03/14

[#1989] English Ruby/Gtk Tutorial? — schneik@...

18 messages 2000/03/17

[#2241] setter() for local variables — ts <decoux@...>

18 messages 2000/03/29

[ruby-talk:01761] Re: Perl => Ruby

From: "Dat Nguyen" <thucdat@...>
Date: 2000-03-06 18:33:23 UTC
List: ruby-talk #1761
>You might want to add '-e0' to the command line. That makes the
>termination slightly tidier.

On WIN/NT DOS, I tried this:
C:\Program\Ruby>ruby -e0 sample\eval.rb

It does not give me the 'ruby>' prompt any more, but returns immediately to 
DOS. Option '-e0' does not work with sample\eval.rb.

Regards,
Dat

>From: Dave Thomas <Dave@thomases.com>
>Reply-To: ruby-talk@netlab.co.jp
>To: ruby-talk@netlab.co.jp (ruby-talk ML)
>Subject: [ruby-talk:01758] Re: Perl => Ruby
>Date: 06 Mar 2000 11:14:37 -0600
>
>The following message is a courtesy copy of an article
>that has been posted to comp.lang.misc as well.
>
>"Dat Nguyen" <thucdat@hotmail.com> writes:
>
> > That's it!
> > What's a relief!
> >
> > On WIN/NT DOS, after:
> > C:\Program\Ruby>ruby sample\eval.rb
> >
>
>You might want to add '-e0' to the command line. That makes the
>termination slightly tidier.
>
> > I tried:
> > ruby>print "Hello World"
> >
> > It yields:
> > Hello Worldnil
> >
> > I've been through this kind of thing in Perl, the 'nil' is the value
> > returned by the whole print statement, right?
>
>That's it!
>
>If you'd just typed
>
>ruby> "hello world"
>
>It would have said "hello world". There's normally no need for print
>or puts statements, the main loop of eval inspects and prints the
>result of the expression you type.
>
>
>Regards
>
>
>Dave

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

In This Thread

Prev Next