[#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:02033] Re: Ruby Syntax similar to other languages?

From: "David Douthitt" <DDouthitt@...>
Date: 2000-03-20 14:13:03 UTC
List: ruby-talk #2033
> matz wrote:
> | Adding 'g' as a Rexexp option makes me feel like Perl.
> 
> And why not?  line.scan is good, but for old Perl (4) hackers
> like me, /xxx/g would just be one more encouragement to give
> up Perl for a nice OOP like Perl!
> 
> Perl had this sort of "convert-happy code" idea also - that is, to
> use forms that were already known (such as s/xxx/g and others) - this
> way it took less time to learn.  Ruby, I think, has some of the same
> idea.....right?

s/Perl\!/Ruby!/

:-)

Or should I say

message.readlines.each { |line|
   gsub!(/Perl\!/, "Ruby!")
   }

:-) :-)


In This Thread

Prev Next