BrianC has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I'm trying to figure out why
while (my @an = $sth->fetchrow_array) { push (@OrderedQuestions, \@an); }
works but
while (my $ran = $sth->fetchrow_arrayref) { push (@OrderedQuestions, $ran); }
doesn't.
Could anyone enlighten me?
Thanks in advance, BrianJanitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips
Back to
Seekers of Perl Wisdom