in reply to How in include header in all pages

The best way to do this is to use a templating system such as Template and use the wrap feature to wrap that formatting around everything else.

If you don't want to go that far, extract the code to generate that header into its own module and use that from all of your programs.

Replies are listed 'Best First'.
Re^2: How in include header in all pages
by varghees (Novice) on Feb 15, 2011 at 06:26 UTC
    I am aware of templates but, I want to know is there any ways in perl to mention something like this, so it will do the inclusion header and footer automatically.
    <url-pattern url="out/*"> <include position=begining header.pm/> <include position=end footer.pm/> </url-pattern> <url-pattern url="out/login.cgi"> <include position=begining LoginHeader.pm/> <include position=end LoginFooter.pm/> </url-pattern>

      I'm sure such a thing exists somewhere, but it's either a function of a web framework or the configuration of your web server.