I have a Perl script that is called from multiple other scripts. Sometimes the calling script has already sent the HTTP header and when my script does this it gets the header displayed in the browser. Some of the calling scripts have not sent the header so my script is required to do so. How can I tell if the header has already been sent?
Thanks for your help.