note
MeowChow
But it's not silent (under -w):
<code>
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
</code>
Though I don't quite understand, if <code>BEGIN</code> blocks are executed before the rest of the containing file is <i>parsed</i> (so sayeth [perlmod]), why does this happen at all?
<pre>
<a href="/index.pl?node=MeowChow"> MeowChow </a>
s aamecha.s a..a\u$&owag.print</pre>
77580
77763