Your code is printing $recs->[0][4] NOT $recs[0]->4 There is a big difference between the two (mainly the former is an arrayref whereas the latter is an array).
Change your code to the latter and it should work. ----- Original Message ----- From: "Derrick Wippler" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 06, 2002 2:08 PM Subject: Good God. I'm going to pull my hair out. > 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] > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]