From: Gavin Sinclair Date: 2002-08-12T09:51:13+09:00 Subject: Re: The problem with using $1 in regexps Good programmers use $1 etc when porting Perl to Ruby. They're not *that* ugly. But they are ugly enough to switch to more pure-Ruby once the program works. Gavin ----- Original Message ----- From: "Yukihiro Matsumoto" To: "ruby-talk ML" Sent: Sunday, August 11, 2002 1:48 AM Subject: Re: The problem with using $1 in regexps > Hi, > > In message "Re: The problem with using $1 in regexps" > on 02/08/10, michael libby writes: > > |Perl's (and Ruby's) $digits are globals. Good programmers avoid globals (or > |at least that's what they tell me ). > > Ruby's $digits are *not* globals, despite of their appearance. They > are (and $~ too) local to the current scope. Good programmers avoid > using $digits probably because they are ugly. > > matz.