You might find perl -x useful.
In reply to Re: [emacs] dual files mangling Perl and Lisp code? by ikegami in thread [emacs] dual files mangling Perl and Lisp code? by LanX