Do we have a preg_callback equivalent in Perl ?

Lets say I want to match something and replace it with the return value of the function that is called with the matched thing.

Edit
Report