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.
- RFC 59 (v1) Proposal to utilize C<*> as the pref... Perl6 RFC Librarian
- Re: RFC 59 (v1) Proposal to utilize C<*> as... Peter Scott
- Re: RFC 59 (v1) Proposal to utilize C<*>... Jonathan Scott Duff
- Re: RFC 59 (v1) Proposal to utilize C<... Peter Scott
- Re: RFC 59 (v1) Proposal to utilize C... Jonathan Scott Duff
- Re: RFC 59 (v1) Proposal to utilize C... Bart Lateur
- Re: RFC 59 (v1) Proposal to util... Peter Scott
- Re: RFC 59 (v1) Proposal to ... Piers Cawley
- Re: RFC 59 (v1) Proposal... Jonathan Scott Duff
- Re: RFC 59 (v1) Proposal... John Porter
- Re: RFC 59 (v1) Proposal... Peter Scott
- Re: RFC 59 (v1) Proposal... Piers Cawley
- Re: RFC 59 (v1) Proposal to ... Bart Lateur
- Re: RFC 59 (v1) Proposal... Bart Lateur
- Re: RFC 59 (v1) Proposal to utilize C<*> as... Nathan Wiger
- Re: RFC 59 (v1) Proposal to utilize C<*>... Peter Scott