in reply to Array Ref Problem
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (Ovid) Re: Array Ref Problem
by jonjacobmoon (Pilgrim) on Dec 29, 2001 at 06:47 UTC |