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]

Reply via email to