On Sun, 5 Dec 1999, Autarch wrote:

> I encountered a problem using Apache::StatINC with modules that have the
> directive:
> 
> use base qw( SomeClass );
> 
> 
> The error I got was the following:
> 
> 
> [Mon Dec  6 07:35:47 1999] [error] Inherited %FIELDS can't override existing %FIELDS 
>at /usr/lib/perl5/5.0050 3/base.pm line 73
> BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.005/HKMDB/Job.pm 
>line 10.
> 
> 
> After messing a bit with Apache::StatINC I found that the solution was to
> 'use' the module again rather than requiring it.
>
> I have a patch attached to do this.  I'm not sure if this is really the
> right solution though.
> !           require $key;
...
> !           eval "use $key;";

use() doesn't help, you just hid the problem with eval ""
I suppose it wouldn't be such a bad idea to change:

eval { require $key };
warn $@ if $@;

Reply via email to