
Zhris
User
Apr 11, 2011, 7:12 PM
Views: 5239
|
|
Re: [sunrise11] Need to change browser's title for one page
|
|
|
The template module Fishmonger suggested. It allows you to place a few special tags inside your HTML code, which will be replaced with your chosen values before printing:
<html> <head> <title><TMPL_VAR NAME=TITLE></title> </head> <body>
use HTML::Template; my $template = HTML::Template->new(filename => 'Header.html'); $template->param(TITLE => 'This is the page title'); print "Content-Type: text/html\n\n", $template->output; Chris
(This post was edited by Zhris on Apr 11, 2011, 8:00 PM)
|