in reply to Function call in a regular expression
There is more information about the construct in perldoc perlre.$text =~ s|(??{chr 231})|c|gise;
update: Note I am answering the question of:
I'd like to be able to call a function in the matching portion of substitution expression.
(though there are better solutions that do the same thing as the OP's example below).
-enlil
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Function call in a regular expression
by sauoq (Abbot) on Jul 31, 2003 at 22:22 UTC | |
|
Re: Re: Function call in a regular expression
by diotalevi (Canon) on Jul 31, 2003 at 22:40 UTC |