in reply to Re: Conflict with INIT block is not an error?
in thread Conflict with INIT block is not an error?
It shouldn't croak for BEGIN.
$ perl -le'use constant BEGIN => 4; print(BEGIN);' 4
But I'm all for having it croak for INIT.
$ perl -le'use constant INIT => 4; print(INIT);' Undefined subroutine &IO::File::AUTOLOAD called. INIT failed--call queue aborted.
A bug report can be filed.
|
|---|