in reply to Re: Basic Array Question
in thread Basic Array Question

This is one way:

while (@_ = $cursor->fetchrow) { $freq{$_[0]}=$_[1]; }

What happens is you are associating the result to an anonymous array (@_)