[#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:01851] Re: Perl ==> Ruby Question

From: matz@... (Yukihiro Matsumoto)
Date: 2000-03-15 17:28:31 UTC
List: ruby-talk #1851
In message "[ruby-talk:01845] Perl ==> Ruby Question"
    on 00/03/15, "David Douthitt" <DDouthitt@cuna.com> writes:

|I looked at the archives, but didn't find what I want.  How do I convert this fragment into Ruby?
|
|    ($var1, $var2, $var3) = split(":");

 var1, var2, var3 = str.split(":")

|I might also make note that Ruby is actually LESS free-form than Perl - Perl uses ";" as a command terminator; Ruby uses newlines!  So you can't have a multi-line statement without some kind of "continuation" marker, as much as I can tell.

Yes, however, operator at the end of line may help.

  print "this is ",
        "multi-lined ",
        "arguments.\n"

							matz.

In This Thread

Prev Next