Skip to main content.
home | support | download

Back to List Archive

Re: dynamically generating @servers for spider.pl

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Tue Nov 23 2004 - 02:35:11 GMT
On Mon, Nov 22, 2004 at 04:41:11PM -0800, Bill Conlon wrote:
> I'm trying it along these lines:
> 
> while (@ary = $sth->fetchrow_array ())
> {
> %hash = (
>      base_url    =>  $ary[1],
> 	max_depth => $ary[2],
>      );
>      push @servers, %hash;

    push @servers, \%hash;

You want to push a hash reference on the list.



-- 
Bill Moseley
moseley@hank.org

Unsubscribe from or help with the swish-e list: 
   http://swish-e.org/Discussion/

Help with Swish-e:
   http://swish-e.org/current/docs
   swish-e@sunsite.berkeley.edu
Received on Mon Nov 22 18:35:13 2004