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.