I think this works:
@arr_DB answers = values(%result);
the array elements won't have any special order however, if that's what you
want.
sean
> -----Original Message-----
> From: MPM [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 14, 2001 1:39 PM
> To: Bradshaw, Brian
> Cc: [EMAIL PROTECTED]
> Subject: Re: Is there a better way to do this
>
>
> Look into using the map function. It should leave you with the following
> code:
>
> map {push @arr_DBanswers, $results{$_}} keys %results;
>
> Scott
>
>
> On Wed, 12 Sep 2001, Bradshaw, Brian wrote:
> > Another question for the list,
> > $z = 0;
> > foreach(@key = keys(%result))
> > {
> > $arr_DBanswers[$z] = $result{$_};
> > $z=$z+1;
> > }
> >
> > Is there a better way to break out the values in a hash list to a single
> > array?
> >
> > I'd be curious to know. Thanks.
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]