in reply to apache2 conflicts with strict declaration
I decided to submit a patch to p5p that would warn like this:
and the patch got accepted. Even though 5.8.1 is not out officially, I think the perl that is in RH9.0 is sufficiently like 5.8.1 to have this patch applied.$ perl5.8.1 -M-strict=redefine -e 1 Unknown 'strict' tag(s) 'redefine' at -e line 0
As to the fact that it works fine in RH7.3. Well maybe, but technically the line was wrong: @ISA got defined as a side effect. Observe:
As to why it got defined originally as a side-effect, I don't know yet. The code in strict.pm is pretty straightforward so there must be som magic going on. I guess I am too tired now to see exactly why it's getting defined. I'll sleep on it and update tomorrow.$ perl5.8.0 -Mstrict -e "@ISA = ()" Global symbol "@ISA" requires explicit package name at -e line 1. Execution of -e aborted due to compilation errors. $ perl5.8.0 -Mstrict=@ISA -e "@ISA = ()"
Liz
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
no strict with 'use strict qw(@ISA)'
by liz (Monsignor) on Sep 11, 2003 at 08:06 UTC | |
by antirice (Priest) on Sep 11, 2003 at 08:17 UTC | |
by liz (Monsignor) on Sep 11, 2003 at 08:28 UTC |