develooper Front page | perl.perl5.porters | Postings from March 2000

Re: hook for qs// operator for embedded SQL?

From:
Joseph N. Hall
Date:
March 21, 2000 12:00
Subject:
Re: hook for qs// operator for embedded SQL?
Message ID:
MailDrop1.2d7j-PPC.1000321130052@perlfaq.com
On Tue, 21 Mar 2000 11:44:11 -0800 Peter@PSDT.com (Peter Scott) wrote:

* I find this idea extremely cool; I do a lot of DBI programming and have
* long thought it would look even better if Perl "knew" SQL.
*
* One thing I do not understand.  How would you bind a qs// string to a
* statement handle?  Given that you can have multiple statement handles open
* simultaneously on the same database, and multiple database handles open
* simultaneously?  There's nothing outlandish about that scenario.
*
* Hmm... overload =~ ?  With a default statement handle (last one
* opened)?  The mind boggles (well, mine does, anyway).
*
* I also like the idea of user-defined qc//...

I think $conn_id =~ qs/...../ is the answer.  Pretty nifty actually.

  -joseph




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About