Simplest is to drop the useless array. Also, you want $sth->fetchrow_arrayref.
while ((my $choice) = $sth->fetchrow_arrayref()) { push(@{ $selections{$_} },$choice); }
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In reply to (Ovid) Re: Array Ref Problem
by Ovid
in thread Array Ref Problem
by jonjacobmoon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |