Nice Article, explains alot of questions I've had about addressing and references.
The thing that puzzles me is, that CGI is supposed to return a reference. So...... $rec = $st->fetchrow_arrayref ; Should return a Reference to an array. This Reference to an array is then placed in an array. I shouldn't place a reference to a reference in an array should I ? $rec = $st->fetchrow_arrayref; push @recs, [$rec]; print "$rec[0][0]->[1] \n"; Unless CGI is not doing what it's supposed to be. Which might be the case, because if I use $rec = $st->fetchrow_hashref ; push @recs, $rec; print "$recs[0]->{field_name}; It works fine. Unless I'm totally lost, which means what I thought I understand I really don't and not understanding what you thought you understood is confusing. Isn't it ? ( Laughed the hole way through the camel book. I love Perl humor ) At 12:25 PM 3/6/02 -0800, you wrote: > >>>>> "Derrick" == Derrick Wippler <[EMAIL PROTECTED]> writes: > >Derrick> Can anyone tell me why " print $rec->[4] " prints >Derrick> but print "$recs[0]->[4] does not print a thing ? > >Ah yes, another candidate to read my "deep copy" article... > ><http://www.stonehenge.com/merlyn/UnixReview/col30.html> > >-- >Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 ><[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/> >Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. >See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! > >-- >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]