See perlreapi, particularly exec().
In reply to Re: regular expressions in XS modules by BrowserUk in thread regular expressions in XS modules by bh