Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have 2 search and replace lines in a script:
s/"//g;
s/\s\s/\;/g;
It operates on a text file and does what it should; how can I combine these two lines into one nice operation (ie, strips out quotes AND replaces 2 spaces with a semicolon)??
Thanks,
Glenn
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: compound search and replace
by jeffa (Bishop) on Jun 20, 2002 at 19:44 UTC | |
|
Re: compound search and replace
by RMGir (Prior) on Jun 20, 2002 at 19:40 UTC | |
|
Re: compound search and replace
by grinder (Bishop) on Jun 20, 2002 at 20:11 UTC | |
|
Re: compound search and replace
by I0 (Priest) on Jun 20, 2002 at 21:20 UTC | |
|
Re: compound search and replace
by ides (Deacon) on Jun 20, 2002 at 19:58 UTC |