Hi,
In message "Re: Bug when rerouting String#gsub with a block using $1?"
on 03/08/18, Mauricio FernáÏdez <batsman.geo / yahoo.com> writes:
|Now, is there any way to propagate $1??
|We need it if gsub and friends are to be wrapped transparently.
Explicitly? You can pass the match data and assign it to $~.
matz.