in reply to Pattern Matching
$temp0="ZO"; $temp1='$1'; $x="ABCZO"; $x =~ s/([A-Za-z]+)$temp0/$temp1/ee; print $x; # should print ABC
hope this helps
MP
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Pattern Matching
by Hofmator (Curate) on Aug 23, 2001 at 20:05 UTC |