jakarta-oro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Takashi Okamoto <toran...@kun.ne.jp>
Subject [PATCH] substitute with $&, $0
Date Sun, 10 Mar 2002 08:20:35 GMT
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


Mime
View raw message