If I understand correctly, you may want to try one of the following:
Option 1
1) Install
HTML::Mason from CPAN. For detailed instructions on how to do this, see
A Guide to Installing Modules.
2) Learn how to use it! See
CPAN.
3)Get started!
Option 2
1) Install
Embperl from CPAN.
2) Learn How to use it! See
CPAN.
3) Get Started!
Hope this helps!