You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oro-dev@jakarta.apache.org by Takashi Okamoto <to...@kun.ne.jp> on 2002/03/10 09:20:35 UTC
[PATCH] substitute with $&, $0
Hi, daniel.
ORO doesn't work correctly when I substitute string into entire
matched pattern.
For example,
-----tmp.pl-----
$a="foo bar hoo";
$a=~s/bar/bar=$&/g;
print $a;
----------------
$ perl tmp.pl
foo bar=bar hoo
I can't obtain above result with oro. I wrote a patch for this
problem. My patch support '$&' and '$0' for substituting entire
matched pattern.
Could you take it?
regards,
----
Takashi Okamoto