Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
help pleasemy @find = ('description', 'Description', 'DESCRIPTION'); my $replace = ('Summary'); @find = quotemeta @find; $newString =~ s/@find/$replace/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: more then one string replacement
by MZSanford (Curate) on Jan 07, 2002 at 22:20 UTC | |
|
Re: more then one string replacement
by andye (Curate) on Jan 07, 2002 at 22:37 UTC | |
|
(jeffa) Re: more then one string replacement
by jeffa (Bishop) on Jan 07, 2002 at 22:37 UTC | |
|
Re: more then one string replacement
by dmmiller2k (Chaplain) on Jan 08, 2002 at 01:32 UTC |