in reply to
String substitution
You need to remove the
\b
s. (as an aside: you can also replace
map
with
foreach
):
foreach (@lines) { s/apple/orange/g }
[download]
--Dave
Comment on
Re: String substitution
Select
or
Download
Code
In Section
Seekers of Perl Wisdom