Hi,
Can someone please explain what a BEGIN block does? I see from my books
and online documentation that BEGIN blocks are run at compile time and
are run only once, but I'm not sure how that's different from any other
perl code that's not in a loop. Also, in my test script (below) the
block wou
I copied and pasted the code that was suggested for Carp (below) and ran it and
I can't get it to work. Does anyone know what's wrong with it? Thanks
Miles
> use CGI::Carp qw(fatalsToBrowser set_message);
>
> BEGIN {
> sub handle_errors {
> my $msg = shift;
> print h1('Oh gosh');
>