> 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!")
   }

:-) :-)