I don't think may people here will agree, but i recommend for your first web-app you don't use a templating system and just print HTML statements wherever you need them. This has 2 advantages:
- You really see what happens right in the code
- It gets so dirty so quickly that next time you'll want to use a templating system
As for the inclusion of another perl file:
You can use
eval but the better way would be to create a perl module (.pm file) that you can then
use.