|
|
| Do you know where your variables are? | |
| PerlMonks |
Re: Re: Why no bareword warnings while inside of BEGINby Juerd (Abbot) |
| on Mar 22, 2004 at 22:44 UTC ( #338805=note: print w/ replies, xml ) | Need Help?? |
|
A BEGIN block is not marked by the sub keyword. Instead, you just use BEGIN {...} It can be, though. "sub BEGIN" doesn't create a normal sub called BEGIN, but it is valid syntax. In fact, it is how B::Deparse deparses BEGIN blocks. The same goes for CHECK, INIT and END. See also what perlmod has to say about this. Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||