[ABE.pm] array references?
Phil Lawrence
phil at five-lawrences.com
Fri Oct 1 14:51:48 CDT 2004
On Oct 1, 2004, at 15:35, Faber Fedor wrote:
> How does one access elements in an array reference? I'v done this:
>
> my $data_array = $dbh->selectall_arrayref("select A, B from
> $table where realdate = '" . $fulldate ."'");
>
> and I get something back, I just can't figure out how to access the
> data
> in column A or B. How would I print out each pair of values?
print $aref->[0][0]; #prints first elem of first row
Also, fire up the perl debugger and make like so:
...
x $aref
prl
More information about the ABE-pm
mailing list