Hi
I want to use a footer.txt and header.txt in script to display all the top and bottom HTML and so it would be easier to change it.
I want to be able to change the title.
sub top {
open(HEADER,"$headerfile");
@header = <HEADER>;
close(HEADER);
print "@header\n";
}
So I call it @top("The title i want");
and the txt contains \<title\>$_[0]\</title\>
It doesn't work and the page is displayed with title "$_[0]" any suggestions how i can change the title??
------------------
---------------
Greg L
gregl@email.com
I want to use a footer.txt and header.txt in script to display all the top and bottom HTML and so it would be easier to change it.
I want to be able to change the title.
sub top {
open(HEADER,"$headerfile");
@header = <HEADER>;
close(HEADER);
print "@header\n";
}
So I call it @top("The title i want");
and the txt contains \<title\>$_[0]\</title\>
It doesn't work and the page is displayed with title "$_[0]" any suggestions how i can change the title??
------------------
---------------
Greg L
gregl@email.com