wu_yang has asked for the wisdom of the Perl Monks concerning the following question:
I have tried to assign the string into a var $a,then used s/$a//gm,it did not work,how can i do that? i don`t want to use hard code like array or if /else/..., or make some patterns,because perhaps the string may be long, and i don`t like delete wrongly.I just want to delete exactly the multi lines string.else a=bbb b=ccc c=ddd ..... end
update (broquaint): added formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: multi lines string delete
by thinker (Parson) on Nov 28, 2002 at 10:29 UTC | |
|
Re: multi lines string delete
by BrowserUk (Patriarch) on Nov 28, 2002 at 09:57 UTC | |
|
Re: multi lines string delete
by artist (Parson) on Dec 02, 2002 at 19:53 UTC |