You see those because something has already finished printing headers to the browser. Your print statements print headers; they must come before all other output.
Something somewhere else in your program is printing headers. If you want to set cookies, you'll have to print them wherever that something is in your program. It may be a call to header() or something like print "Content-type: text/html\n\n".
In reply to Re^6: cannot Access the sub-routine
by chromatic
in thread cannot Access the sub-routine
by blazix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |