This is very possible.
You haven't shown us the relevant Perl code, so I can only give relatively general advice.
The best approach is to use one of the many templating systems and keep your HTML in a file separate from your Perl code. See for example Template::Toolkit
In reply to Re: incorporate HTML coding in a Perl program
by Corion
in thread incorporate HTML coding in a Perl program
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |