perlquestion
BrianC
<p>Hi,
</p>
<p>I'm trying to figure out why
</p><c>
while (my @an = $sth->fetchrow_array) {
push (@OrderedQuestions, \@an);
}
</c><p>
works but
</p><c>
while (my $ran = $sth->fetchrow_arrayref) {
push (@OrderedQuestions, $ran);
}
</c><p>
doesn't.
</p><p>
Could anyone enlighten me?
</p>
Thanks in advance,</br>
Brian<p><small>Janitored by [Corion]: Added formatting, code tags, as per [id://17558]</small></p>