From: Ryan Davis Date: 2012-06-28T05:36:00+09:00 Subject: Re: should $1 propagate through method calls? On Jun 27, 2012, at 13:26 , Roger Pack wrote: > Hello all. > > > When running this snippet, I expected that, since $1 "looks" like a > global variables, it would be propagated across method calls. Should it > be? From the pickaxe, Variables and Constants: $1 to $9 String 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] (emphasis mine)