Google sa traiasca:
$data->[$i]{'fieldname'} did the trick :)
On Wed, 5 Jun 2002, Mihai RUSU wrote:
> Salut
>
> Cum se citesc datele citite cu fetchall_arrayref atunci cand vreau
> referinte la hash-uri ?
>
> Am incercat urmatorul programel si nu merge:
>
> $data = $sth->fetchall_arrayref({}) || die $dbh->errstr;
> $norows = @$data;
> for($i=0; $i<$norows; $i++) {
> my $rhash = $data[$i];
> printf "Got index: %d, data: %d\n", $i, $rhash->{'fieldname'};
> }
>
> Unde "fieldname" e un nume de camp din db.
> Interesant este ca $norows imi arata numarul de linii ok din tabela unde
> fac select-ul dar nu inteleg cum sa fac referirea la hash reference-urile
> din $data.
>
> Thanks
>
> ----------------------------
> Mihai RUSU
>
> Disclaimer: Any views or opinions presented within this e-mail are solely
> those of the author and do not necessarily represent those of any company,
> unless otherwise specifically stated.
>
> ---
> Pentru dezabonare, trimiteti mail la
> [EMAIL PROTECTED] cu subiectul 'unsubscribe rlug'.
> REGULI, arhive si alte informatii: http://www.lug.ro/mlist/
>
>
>
----------------------------
Mihai RUSU
Disclaimer: Any views or opinions presented within this e-mail are solely
those of the author and do not necessarily represent those of any company,
unless otherwise specifically stated.
---
Pentru dezabonare, trimiteti mail la
[EMAIL PROTECTED] cu subiectul 'unsubscribe rlug'.
REGULI, arhive si alte informatii: http://www.lug.ro/mlist/