On Thursday, November 8, 2001, at 02:37 PM, Frank Newland wrote:
> Everyone: > > My question centers around what is standard perl and what is > user-defined. > When my code gets to the line $sth-execute I understand that the query > runs and results appear in $sth->fetchsomething? this is standard object-oriented Perl. type perldoc perltoot for general details what you say is not quote correct. What is happening is that $sth, short for statement handle is executing your SQL. Then the same statement handle ($sth) is used to fetch results from the database. The call to $sth->fetch_whatever _returns_ something for your Perl program to use. you might also buy the DBI book from O'Reilly while you are at it. > > What is $sth->fecthsomething? I understand that perl is all about > context. in object-oriented parlance, that is a method call... a statement handle is making a method call to the a DBI method to fetch results from a database > Where can I go to learn more about capturing the output (query results) > from > $sth->execute ? > see above > Are such structures as $sth->fecthrow_hasrhref, and $sth->fetchrow_array > etc. listed somewhere ? > If so where can I learn more about them? > type perldoc DBI for starters... also visit www.tpj.com and read the back issue articles on DBI. another source is www.perl.com and final source is http://www.PerlMonks.org > Thanks > > Frank > > > > > >
