in reply to Re: Search and Replace fears
in thread Search and Replace fears
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
|
|---|