in reply to Embed Perl in Perl

The code in XS files is C code, so if you want to create a Perl interpreter from a Perl interpreter, go right on ahead and do it.

Or are you really asking if you can use the Perl API from XS code? Most definitely yes.