I have a friend who was talking about doing this, but have
you seen/considered Perlmacs. It's supposedly a perl
interpreter built into Emacs so you can write macros in lisp
or perl. It might be what you're looking for.
Nuance
Baldrick, you wouldn't see a subtle plan if it painted
itself purple and danced naked on top of a harpsichord,
singing "Subtle plans are here again!"
Comment on RE (2) Aighearagh: Perl Development Environments