perlbeginner10 has asked for the wisdom of the Perl Monks concerning the following question:
I have a small problem, I guess it should be hard. I have an array of words.
I want to scan through the array and if " ' " is found, replace with " \' ".@array = ('dave', 'brian','alex's','eddie's');
Update:
Hi,
Got the answer already!!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: finding and replacing
by McDarren (Abbot) on Dec 04, 2005 at 17:25 UTC | |
|
Re: finding and replacing
by NetWallah (Canon) on Dec 04, 2005 at 17:21 UTC | |
by perlbeginner10 (Acolyte) on Dec 04, 2005 at 19:07 UTC | |
by NetWallah (Canon) on Dec 05, 2005 at 05:12 UTC | |
|
Re: finding and replacing
by serf (Chaplain) on Dec 04, 2005 at 23:54 UTC | |
by serf (Chaplain) on Dec 05, 2005 at 11:16 UTC |