Help for this page
# The string these literals produce don't contains any "\". my $string = "my string with \ and / slashes."; ... # It works. $string =~ s/\Q$substring\E/\"$substring\"/gi; print("$string\n");
my string with and / slashes. with and / slashes ... with \ and / slashes my string "with \ and / slashes".