There's a proof of concept module that does this. It's called Perl.
In reply to Re: Embed Perl in Perl by ambrus in thread Embed Perl in Perl by jeteve