in reply to Conflict with INIT block is not an error?
OTOH, constant.pm could in theory be made to croak instead of just issuing a warning, as it currently does
# Maybe the name is tolerable } elsif ($name =~ $tolerable) { # Then we'll warn only if you've asked for warnings if (warnings::enabled()) { if ($keywords{$name}) { warnings::warn("Constant name '$name' is a Perl keyword");
But maybe whoever wrote that code had some curious usage of such keyword/subroutine redefinition in mind, in which case a fatal error might be inappropriate here? After all, you can make warnings fatal yourself, as already mentioned above.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Conflict with INIT block is not an error?
by ikegami (Patriarch) on Oct 26, 2010 at 16:41 UTC |