This still gives fine control, but you don't have to list everything.my %mapping = (n => "\n", t => "\t"); $str =~ s{\\(.)}{$mapping{$1}//$1}seg;
In reply to Re^2: Interpretting character combinations as special characters.
by JavaFan
in thread Interpretting character combinations as special characters.
by music_man1352000
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |