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

Embedded SQL, qs, and suchlike things

From:
Dan Sugalski
Date:
March 20, 2000 09:15
Subject:
Embedded SQL, qs, and suchlike things
Message ID:
4.3.0.20000320115546.01d3c970@24.8.96.48
Since providing embedded SQL support would involve changes to the guts of 
perl anyway, maybe we should be thinking a bit more flexibly than a new 
quoting operator. Instead of qs() (which would be kind of cool) maybe we 
should consider enhancing formats to allow attributes. Formats need some 
major overhaul *anyway*, so why not go and do it all in one swoop? 
Something like:

format QUERY : sql =
   select foo, bar
   into   $foo, $bar
   where baz = $xyzzy;
.

and enhance prototypes and maybe add something that indicates a format. (. 
or F or something)

					Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                      teddy bears get drunk




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