in reply to seek and replace for exceptional characters
Using the quotemeta function is the simplest solution. But so that you understand the underlying reason, your search regex could also be defined as follows (simply escaping the '+' sign):
my $A = qr (\+#);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: seek and replace for exceptional characters
by semipro (Novice) on Sep 23, 2013 at 18:18 UTC | |
by marinersk (Priest) on Sep 23, 2013 at 22:09 UTC | |
by toolic (Bishop) on Sep 23, 2013 at 18:33 UTC |