If you're looking to embed Perl code in a HTML document, you should look at HTML::Mason or Embperl. A Search or even a Super Search of the Perl Monks site should lead you to some discussion of the merits of each.
Comment on Re: i need to include m.pl to html how do i do it