in reply to
How to make that works with perl
Not sure what you mean, but if you want to make your Perl CGI script output HTML that contains only very little dynamic content ("takes the action from another script" ?) and is mostly created by Dreamweaver you should use one of the popular templating engines (such as Template Toolkit or HTML::Template).
If you have some extra time and control over how the HTML design is done, you should also consider switching over to standards-based design using CSS. That would greatly simplify the HTML that your program has to produce (no more tables, font tags, or nbsps) and make it easier to change the design without touching the program or templates.