FRIENDOFGOD has asked for the wisdom of the Perl Monks concerning the following question:

How do I check if a header has been defined.

For example, IF a Module had

print "content-type: text-html\n\n";

in the Module, and so did the Page that used the Module, then the Extra "content-type: text/html" would display in the Browser.

How do I check if the Header has been defined to avoid printing the Header twice, something such as:

unless(header){print "content-type: text/html\n\n";}

And more generally, how do I access all the Headers that were printed?

- Look For God