Skip to main content.
home | support | download

Back to List Archive

Re: Bug in URL lists with

From: Bill Moseley <moseley(at)>
Date: Wed Nov 28 2001 - 09:20:45 GMT
At 01:11 AM 11/28/01 -0800, Malcolm Box wrote:
>I'm using swish-e-2.1-dev-24 and when I use a list of URLs as the 
>base_url attribute in the config file, I get the following error:
>"Bizarre copy of ARRAY in sassign at ./ line 93."
>(Using perl 5.6.0 or 5.6.1 on Linux).
>This seems to be related to this code:
>        for (ref $s->{base_url} eq 'ARRAY' ? @{$s->{base_url}} : 
>$s->{base_url} ) {
>            $s->{base_url} = $_;
>            process_server( $s );
>        }
>Which looks like it's iterating over an array that will then change 
>underneath the iterator.

Oh, thanks.  Good catch.  I tested with multple links before, so maybe I
changed that code at some point.

I've been meaning to rewrite it so It makes a copy of the config, as now it
uses the passed in config to store data while spidering.  Not very clean.

Bill Moseley
Received on Wed Nov 28 09:24:49 2001