in reply to replacing text with a function
You want to use the 'e' modifier to the regex: s/something/somefunction(@somearguments)/e which replaces by the result of the code in the replace part which is then considered a Perl expression. (See perlretut or perlre for more info.)
Hope this helps, -gjb-
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: replacing text with a function
by Anonymous Monk on Jan 14, 2003 at 13:41 UTC |