Subject: Re: instance_eval, regexp with block : losing $1
From: Roger Pack <rogerpack2005 gmail.com>
Date: Wed, 4 Jun 2008 09:42:57 +0900
References: 303883
In-reply-to: 303883
> f.g('doing') #doiggg ; problem is I cannot use $1 in block
# maybe pass it as a parameter or save it away to some global variable
or 'per thread' variable.
-R
--
Posted via http://www.ruby-forum.com/.