in reply to Pattern Matching, left-to-right
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re^2: Pattern Matching, left-to-right
by merlyn (Sage) on Aug 20, 2004 at 20:28 UTC | |
by Aristotle (Chancellor) on Aug 20, 2004 at 20:44 UTC |