http://qs321.pair.com?node_id=549158

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,
Brian

Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips