Perhaps something like...
my %map = ( F => "|", S => "^", T => "&", R => "~", E => "\\" ); $msgu =~ s/\\([FSTRE])\\/$map{$1}/g;
antirice
The first rule of Perl club is - use Perl
The ith rule of Perl club is - follow rule i - 1 for i > 1
In reply to Re: Pattern Matching, left-to-right
by antirice
in thread Pattern Matching, left-to-right
by TrekNoid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |