Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: removing a character from a stringby mrbbking (Hermit) |
on Jun 18, 2002 at 19:49 UTC ( [id://175480]=note: print w/replies, xml ) | Need Help?? |
Do like this:
s/<search>/<replace>/g; # the 'g' replaces every occurrence of <search>, not just the first. Update: This'll work, too:
In Section
Seekers of Perl Wisdom
|
|