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

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

Joseph N. Hall
March 21, 2000 12:00
Re: hook for qs// operator for embedded SQL?
Message ID:
On Tue, 21 Mar 2000 11:44:11 -0800 (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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About