in reply to Re^2: Substitution, '+' in first position of Pattern
in thread Substitution, '+' in first position of Pattern
perl -e '$in=quotemeta("+44");$out=$in; $out=~s/\Q$in\E//;print "Result: |$in|$out|\n";' Result: |\+44||
perl -e '$in="+44";$out=$in; $out=~s/\Q$in\E//;print "Result: |$in|$out|\n";' Result: |+44||
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Substitution, '+' in first position of Pattern
by flexvault (Monsignor) on Oct 01, 2010 at 11:13 UTC |