> -----Message d'origine-----
> De : Dave Kettmann [mailto:[EMAIL PROTECTED]
> Envoyé : mercredi 1 septembre 2004 22:42
> À : Perl List (E-mail)
> Objet : RE: Is my DB code bad?
> 
> First off, Thanks to Jenda and Wiggins for their quick response. I
have
> found the answer to my question in Jenda's help (the missing "'"'s)
> 
> Sorry for not being more specific earlier it has been a hectic day
here :)
> 
> This page is on a internal server that 3 people have access to.
(myself
> and 2 others) Making this ultra secure is not a big deal at this
point.
> The way this is built is there is one cgi script (radius.cgi) that all
> this is in, and they are reference by subroutine via the 'action'
> parameter. The $self variable is a variable that points back to this
> script (so $self?action=remove would get me to
> http://<insert_url_here>/radius.cgi?action=remove ) Is easier to use a
> variable like that than to type out the other. There may be better
ways to
> do that but, hey, this works and im a perl beginner :).
> 
> That being said (even though it may not have been necessary), can I
get a
> link to a good description of the object oriented syntax if one
exists? I
> know I can do a perldoc and find what it does and how to use it, but
the
> variable names confuse me. (i.e.: $sth etc) I'm sure I could
understand it
> alot better if someone (or a webpage) could explain it to me, the
> documentation just tells you how to use it, but I need to know what it
> means :).

Just a hint about dbi variables naming:
$sth : st(statement) h(handler)
$dbh : db(database) h(handler)

Give a look to Fig4-3: DBI handles
at http://www.oreilly.com/catalog/perldbi/chapter/ch04.html
you will get a good overview about those handlers.

José.


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to