Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
so long as I can guarantee that $a will always evaluate to an integer. The Perl interpreter does not complain when it encounters this, but the substitution does not appear work. I tried putting the whole thing in an eval block, but no success. If anybody can think of another way to accomplish this, I would be appreciative. Thank yous/ABC{$a}/$b/g;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: variables allowed inside iterative loops in regular expressions?
by jdporter (Paladin) on Nov 06, 2002 at 18:54 UTC | |
by Ovid (Cardinal) on Nov 06, 2002 at 19:13 UTC | |
by dvergin (Monsignor) on Nov 06, 2002 at 20:25 UTC | |
Re: variables allowed inside iterative loops in regular expressions?
by talexb (Chancellor) on Nov 06, 2002 at 19:21 UTC | |
Re: variables allowed inside iterative loops in regular expressions?
by Three (Pilgrim) on Nov 06, 2002 at 19:24 UTC |