Is it possible to use perl subroutines inside regexp, using backreferences as parameters?Yes, and yes. But that's not what you actually want. Or do. You're using a subroutine call in the replacement part, which isn't a regexp.
And how to do that was already explained by moritz, nothing to add to his answer.
In reply to Re: Call subroutines inside regexp, using backrefences as parameters
by JavaFan
in thread Call subroutines inside regexp, using backrefences as parameters
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |