http://www.perlmonks.org?node_id=77773


in reply to Re (tilly) 3: No excuses about not using CGI.pm
in thread variables not posting?

But it's not silent (under -w):
mysub(1); BEGIN { package Foo; require Exporter; @ISA = qw(Exporter); @EXPORT = qw(mysub); sub mysub ($) { print "mysub: @_\n" }; } BEGIN { Foo->import(); } ## Output main::mysub() called too early to check prototype at C:\Projects\GPerl +\Test\g1.pl line 1. mysub: 1
Though I don't quite understand, if BEGIN blocks are executed before the rest of the containing file is parsed (so sayeth perlmod), why does this happen at all?
   MeowChow                                   
               s aamecha.s a..a\u$&owag.print