This is one way:
while (@_ = $cursor->fetchrow) { $freq{$_[0]}=$_[1]; }
What happens is you are associating the result to an anonymous array (@_)
In reply to Re^2: Basic Array Question
by leocharre
in thread Basic Array Question
by pickledegg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |