in reply to Perl recompile after OS kernel update

That would be the case if you used the system Perl and its major version changed. (XS compiled for 5.10 will need to be recompiled for 5.12.) But you're talking about specifically avoiding that.
  • Comment on Re: Perl recompile after OS kernel update