in reply to Variables in Regular Expressions?
Try:
$a = "abc"; $b = "def"; $c = "abc leppard"; $c =~ s/$a/$b/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Variables in Regular Expressions?
by pchou (Novice) on Apr 25, 2001 at 23:43 UTC | |
by busunsl (Vicar) on Apr 25, 2001 at 23:55 UTC |