Melk has asked for the wisdom of the Perl Monks concerning the following question:
I'm writing a find/replace script, and am running into issues with the ampersand and pound signs.
q[<IL.Check/>]=>q[<√>],In the previous example, I'm trying to find <IL.Check/> and replace it with √. I have even added quotes, as in "√" or &"#"x221a;, but in both cases the quotes appear in the output.
Am I adding quotes in the wrong place, or do I also need to add something for the ampersand?
Any help is appreciated, thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to ignore ampersand and pound signs?
by bichonfrise74 (Vicar) on Nov 04, 2009 at 01:25 UTC | |
by Melk (Initiate) on Nov 04, 2009 at 01:44 UTC | |
by ikegami (Patriarch) on Nov 04, 2009 at 02:33 UTC | |
by Anonymous Monk on Nov 04, 2009 at 01:55 UTC |