in reply to Re^2: Printing content-type in the proper context
in thread Printing content-type in the proper context

HTML and HTTP headers are two different things, so it's a good idea to have them in separate functions. For lazy users, you can provide a wrapper third function which calls both:
sub print_everything_with_extra_cheese { print header(); print printHTML(); }

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.