Perhaps I should have been more explicit...
have a look in ...my $string = 'abcdef'; my $match = '[a-z]'; $string =~ s/\Q$match/NOT REPLACED/; print "$string\n"; $string =~ s/$match/REPLACED/; print "$string\n"; __OUTPUT__ abcdef REPLACEDbcdef
perldoc perlre
In reply to Re^2: Search and Replace fears
by reasonablekeith
in thread Search and Replace fears
by poltras
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |