BEGIN { use CGI::Carp qw(carpout); open(LOG, ">>/var/local/cgi-logs/mycgi-log") or die "Unable to append to mycgi-log: $! "; carpout(*LOG); }
have to completely enclose the entire script it's tracking or can the BEGIN block appear as such at the top of the script?
(Apologies in advance for the dimwittedness of this question, but at least it should be easy to answer!)
Thanks so much,
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |