[ I lost the original message. Sorry!]
> Have you looked at things like HTML::Template to seperate out and manage
> your HTML?
>
> I personally have *finally* started to practice what I preach, and I am
> finding it easier. I'm just about to start looking at HTML::Template
> myself.
Quite often, the HTML files that get included don't have anything
needing processing (i.e., they aren't templates). This is most
easily accomplished by a pair of subroutines like:
sub send_file ($) {
my $file = shift;
local *F;
unless (open F, $file) {
warn "send_files: Can't open '$file': $!";
next;
}
return <F>;
}
sub send_files (@) {
map { send_file $_ } @_;
}
print send_files "header.html", "footer.html";
I use things like this occasionally; they work well, can be
optimized independant of the rest of the application, and can be
resued.
(darren)
--
Reality is that which, when you stop believing in it, doesn't go away.
-- Philip K. Dick
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]