Thanks guys, but I wound up using this Tuesday:

while (%result = $finalSet->fetchhash())
{ 
  push @arr_DBanswers, values %result;
}

-----Original Message-----
From: Curtis Poe [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 14, 2001 4:57 PM
To: MPM; Bradshaw, Brian
Cc: [EMAIL PROTECTED]
Subject: Re: Is there a better way to do this


--- MPM <[EMAIL PROTECTED]> wrote:
> Look into using the map function. It should leave you with the following
> code:
> 
> map {push @arr_DBanswers, $results{$_}} keys %results;
> 
> Scott

Scott,

Actually, it's usually bad to use map in void context as returns a lot data,
merely to throw it
away when you don't use the returned results.  A better answer is:

    my @arr_DBanswers = values %results;

Cheers,
Curtis "Ovid" Poe

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to