in reply to Re: CGI::Carp use of BEGIN block to log errors (newbie question)
in thread CGI::Carp use of BEGIN block to log errors (newbie question)
No, a BEGIN block is executed before the rest of the script is compiled.
To avoid confusion, the answer to the original question is correct: The BEGIN block doesn't need to enclose the entire script.
- tye (but my friends call me "Tye")
|
|---|