Hi, At Sat, 31 Mar 2007 08:06:48 +0900, John Lam (CLR) wrote in [ruby-core:10823]: > Dumb question of the day: why does the Ruby parser treat these four global > variables specially on assignment? $& $` $\ and $+ $&, $`, $', $+, $1, $2 and so on are wrappers for $~, and MatchedData stores the target string and captured positions only, but not captured substrings themselves. And the parser knows that they are syntax sugar. Or, are you suggesting that the target string should be changed by such assignment? -- Nobu Nakada