gives$input =~ s{\Q.\E}{\Q\.\E}g;
this \Q and \E tags advise the RE engine to ignore magic characters and threat everything between them as a string (I hope a better explanation is somewhere in the tutorials see: http://www.perlmonks.org/?node=Tutorials#Pattern-Matching-Regular-Expressions-and-Parsing)Kev\.has\.a\.stupid\.perl\.question
In reply to Re: Incredibly stupid substitution question :(
by wwe
in thread Incredibly stupid substitution question :(
by viffer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |