Report question

Question: Perl equivalent of PHP's preg_callback