Can anyone tell me why " print $rec->[4] " prints
but print "$recs[0]->[4] does not print a thing ?
I've confimed the data, the first row in the fourth column is an "F"
$rec->[4] prints it, but $recs[0]->[4] does not !!!!!!! ARG !!!!@#@!#!!!@@!!@!!
PS: I'm using DBI, my DBI object is $db
my @recs;
my $sql = shift;
my $st = $db->prepare($sql);
my $rc = $st->execute(@_);
my $rec;
while ($rec = $st->fetchrow_arrayref)
{
print @$rec,"\n";
print "|$rec->[4]|\n";
push @recs, $rec;
}
$st->finish;
print " Ref: $recs->[0][4]\n";
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]