lauragarcia has asked for the wisdom of the Perl Monks concerning the following question:
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,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI::Carp use of BEGIN block to log errors (newbie question)
by arturo (Vicar) on Apr 23, 2001 at 21:21 UTC | |
by tye (Sage) on Apr 23, 2001 at 21:26 UTC | |
by dws (Chancellor) on Apr 23, 2001 at 21:28 UTC | |
|
Re: CGI::Carp use of BEGIN block to log errors (newbie question)
by providencia (Pilgrim) on Apr 23, 2001 at 21:54 UTC |