Re: [ilugd]: Perl RE question:Custom replace function

2002-12-29 Thread Ambar Roy
> PHP has a function in which the replacement of an RE match can be > handled by the name of a given function. Does Perl have something > similar? Should be. After all PHP calls these lots the PCRE functions. > > In other words, I want to do this: > > === >

[ilugd]: Perl RE question:Custom replace function

2002-12-29 Thread Sandip Bhattacharya
PHP has a function in which the replacement of an RE match can be handled by the name of a given function. Does Perl have something similar? Should be. After all PHP calls these lots the PCRE functions. In other words, I want to do this: === while(<>){