>>
So what would do that then? (print the header, only if defined) ?
<<
GT::CGI handles that automatically anyway.
You can't just use "defined" in the way you did - see the perldoc for defined.
http://www.perldoc.com/...od/func/defined.html
...so basically the first sentence should tell you that the way you have it, defined is checking whether $_ is defined or not.
So what would do that then? (print the header, only if defined) ?
<<
GT::CGI handles that automatically anyway.
You can't just use "defined" in the way you did - see the perldoc for defined.
http://www.perldoc.com/...od/func/defined.html
...so basically the first sentence should tell you that the way you have it, defined is checking whether $_ is defined or not.