On Mon, 07 Aug 2000 10:56:40 -0700, Peter Scott wrote:

>I meant that BEGIN, END, and INIT aren't declared as subs at present but 
>named blocks.  I was surprised to discover that they're put in the symbol 
>table anyway though.

Check the docs again. Although not the habit, it IS allowed to use:

        sub BEGIN {
           ....
        }

instead of just:

        BEGIN {
           ....
        }


>From perlmod:

  Package Constructors and Destructors

    Four special subroutines act as package constructors and
    destructors. These are the `BEGIN', `CHECK', `INIT', and `END'
    routines. The `sub' is optional for these routines.

-- 
        Bart.

Reply via email to