Spidy has asked for the wisdom of the Perl Monks concerning the following question:
Hello, all.
I am currently working on a Perl project that uses a few "quick cookies" - that is, cookies that I only need for a minute or two, and can then discard.
Thus far, I have been printing my cookies using the CGI->header() command, but in cases where I have printed a cookie, I need to be sure not to print another header - or it appears at the top of my page.
Does anyone know of a way that I could check to see if a header has been printed, to make sure that I don't "overlap" my headers?
Thanks,
Spidy
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Checking if a header has been printed
by ikegami (Patriarch) on Nov 26, 2007 at 15:38 UTC | |
|
Re: Checking if a header has been printed
by Cubes (Pilgrim) on Nov 26, 2007 at 16:18 UTC |