$temp0="ZO"; $temp1='$1'; $x="ABCZO"; $x =~ s/([A-Za-z]+)$temp0/$temp1/ee; print $x; # should print ABC
hope this helps
MP
In reply to Re: Pattern Matching
by Monky Python
in thread Pattern Matching
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |