in reply to Re: Regex Substitution, Interpolating on the RHS?
in thread Regex Substitution, Interpolating on the RHS?
How do I code, for instance, so that $regex may sometimes be:
but at other times justmy $regex = ['(foo)',sub {\"bar$1"}];
my $regex = ['foo','bar'];
I'm guessing I'll need to use ref() or something?
($_='kkvvttuu bbooppuuiiffss qqffssmm iibbddllffss')
=~y~b-v~a-z~s; print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Regex Substitution, Interpolating on the RHS?
by Roy Johnson (Monsignor) on Jul 19, 2005 at 13:20 UTC |