![]() |
|
P is for Practical | |
PerlMonks |
Re: Re: Chaining string opsby roju (Friar) |
on Aug 28, 2003 at 19:25 UTC ( #287496=note: print w/replies, xml ) | Need Help?? |
Could we not have it both ways? After all, this is perl.... if ($s =~ s/change/me/) where /r is the newly created "chaining" modifier that forces a /r/eturn of the new string. Make it have no side effects either (ie. not touch the original string), and it'd fill a need. Update: changed /c to /r, seeing as /c is taken.
In Section
Seekers of Perl Wisdom
|
|