At 01:11 AM 11/28/01 -0800, Malcolm Box wrote:
>Hi,
>
>I'm using swish-e-2.1-dev-24 and when I use a list of URLs as the
>base_url attribute in the spider.pl config file, I get the following error:
>
>"Bizarre copy of ARRAY in sassign at ./spider.pl 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
mailto:moseley@hank.org
Received on Wed Nov 28 09:24:49 2001