On Wed, Jun 27, 2012 at 4:36 PM, Ryan Davis <[email protected]>wrote:
> The contents of successive groups matched in a successful pattern match. > In "cat" =~/(c|a)(t|z)/, $1 will be set to âaâ and $2 to âtâ. THIS VARIABLE > IS LOCAL TO THE CURRENT SCOPE. [r/o, thread] > > Personally I love the Perl heritage stuff like this. But for someone coming from a non-Perl background, damn that must seem pretty weird and surprising. -- Avdi -- You received this message because you are subscribed to the Google Groups ruby-talk-google group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at https://groups.google.com/d/forum/ruby-talk-google?hl=en
