or why not...

$dat = $sth -> fetchall_arrayref;
foreach (@{$dat}) {
  foreach (@{$_}) {
    print
  }
}

Ragnar

-----Original Message-----
From: Perl DBI [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 22, 2000 02:58
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: can't get $sth -> fetchall_arrayref each one?


try this. I haven't tested it (but i think this will work).

$dat = $sth -> fetchall_arrayref;
foreach $i ( 0..$#{ $dat } ) {
   foreach $j ( 0..$#{ $dat->[$i] } ) {
     print $dat->[$i][$j];
  }
}

see `perldoc perldsc`

sherwin

[EMAIL PROTECTED] writes:
># but here....
>for($i=0;$i<10;$i++){  # but here i did not see the first value ..
>$dat = $sth -> fetchall_arrayref;
>for($j=0;$j<10;$j++){
>print "$dat->[$i][$j]";
>}
>}



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to